Poetry package manager¶
- Website
- Why Is Poetry Essential to the Modern Python Stack?
- Support for PEP 621 (PEP 621 – Storing project metadata in pyproject.toml)
Installation¶
python3-poetry deb package is only available in ubuntu jammy and upwards.
Until then:
or
Usage¶
Setup¶
Either create a new project (creates a new directory structure and files)
or
initialise an existing project
(Creates a pyproject.toml file)
Install packages¶
Add package:
Install deps including the current project
or only install dependencies from lock file
Virtual envs¶
Show venv details:
Only show venv path:
Enable venv:
Update poetry.lock: