Poetry is a python manager. With it, developers can control virtual environments, dependencies and builds
To install Poetry, you can follow the instructions in the oficial documentation.
For quick installation, use the following command on Unix-like systems:
curl -sSL https://install.python-poetry.org | python3 -
Or this for Windows Systems:
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py -
This project already has a poetry configuration file. Run these commands on the project root.
To install the correct python version and its dependencies in a virtual shell, use:
poetry shell
This will spawn a new shell based on your default system shell ready for python use.
Since it's a shell, simply type exit
to return to the default environment
The first time you start a virtual environment (venv), or if you're installing it
globally, use poetry install
. This will install all dependencies, including dev dependencies,
on the environment being used.