Poetry Concepts: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 3: | Line 3: | ||
=Overview= | =Overview= | ||
Poetry is a Python package management tool and an environment manager. It does create a Python virtual environment based on the project's declared dependencies. The project should declare its dependencies in <code>[[pyproject.toml|pyproject.toml ]]</code>. Poetry can also be used to build and publish packages in Python package repositories. | Poetry is a Python package management tool and an environment manager. It does create a Python virtual environment based on the project's declared dependencies. The project should declare its dependencies in <code>[[pyproject.toml|pyproject.toml]]</code>. Poetry can also be used to build and publish packages in Python package repositories. | ||
=<tt>pyproject.toml</tt>= | =<tt>pyproject.toml</tt>= | ||
{{Internal|pyproject.toml|pyproject.toml}} | {{Internal|pyproject.toml|<tt>pyproject.toml</tt>}} | ||
=Virtual Environments= | =Virtual Environments= |
Revision as of 20:44, 3 November 2023
Internal
Overview
Poetry is a Python package management tool and an environment manager. It does create a Python virtual environment based on the project's declared dependencies. The project should declare its dependencies in pyproject.toml
. Poetry can also be used to build and publish packages in Python package repositories.
pyproject.toml
Virtual Environments
Poetry maintains its virtual environments under ~/Library/Caches/pypoetry/virtualenvs
. Each virtual environment is named after what?, and it is postfixed by a hash (ZyD6nUaS
). There is an index file ~/Library/Caches/pypoetry/virtualenvs/envs.toml
.
The virtual environment is created when?, how?
Also see:
PyCharm and Poetry
When initializing a project, PyCharm figures out if it is managed by Poetry and sets the project up accordingly: