Poetry

Using Poetry

    1. Installation
    • 1.1 Configuration: poetry completions bash > /etc/bash_completion.d/poetry.bash-completion
    1. Usage poetry new poetry-demo to make a new directory project or poetry init in current project
    1. Activate venv in the project poetry shell
    1. Add dependencies poetry add pandas add developer dependencies with poetry add --dev pytest
    • 4.1 get latest versions of all dependencies poetry update or list which to update poetry update pandas
    1. Build the source and wheel archives poetry build
    1. deactivate venv exit
    1. publish to PyPi poetry publish
  • Opening a poetry project and installing them poetry install
  • update poetry poetry self update
  • poetry help pages easy to access poetry help <command>

Backlinks