Python dependency management and packaging third-party library Poetry

Python dependency management and packaging third-party library Poetry

https://blog.csdn.net/m0_70669463/article/details/131554843

7 Configure poetry environment in Pycharm

Generally, when you get a project containing a poetry environment and open it with pycharm, the poetry interpreter will be automatically recognized. If it is not recognized, you need to add it manually, as shown below:

Basic interpreter: Select the Python executable file corresponding to the virtual environment.

Poetry executable file, select the Poetry executable file installed locally.
Insert image description here

After the configuration is completed, open the console in the bottom navigation bar of pycharm to display the current virtual environment prefix. Then you can operate according to the normal process.

8. Package and release

8.1 Packaging
poetry build

8.2 pypi publish
publish

Guess you like

Origin blog.csdn.net/WSYLH/article/details/132685123