1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-04 13:57:07 +02:00
tldr/pages/common/poetry.md
Lucas Gabriel Schneider a5fe31bc47
multiple pages: format technical tokens (#5119)
Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com>
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
2021-01-31 12:05:18 -05:00

554 B

poetry

Manage Python packages and dependencies. More information: https://python-poetry.org/docs.

  • Create a new Poetry project in the directory with a specific name:

poetry new {{project_name}}

  • Install a dependency and its subdependencies:

poetry add {{dependency}}

  • Interactively initialize the current directory as a new Poetry project:

poetry init

  • Get the latest version of all dependencies and update poetry.lock:

poetry update

  • Execute a command inside the project's virtual environment:

poetry run {{command}}