Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 1.2 KB

Poetry.md

File metadata and controls

32 lines (26 loc) · 1.2 KB

Poetry

Poetry is a python manager. With it, developers can control virtual environments, dependencies and builds

Installation

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 -

Usage

This project already has a poetry configuration file. Run these commands on the project root.

Start the python environment

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

Install dependencies

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.