poetry
Yet another package manager for Python the language.
By default, poetry uses~/.cache/pypoetry/virtualenvs
for storing virtual envs. Bad idea. Change it withpoetry config virtualenvs.path /your/new/path
.$HOME/.local/share/poetry/virtualenvs
is suggested. See this issue.
# How to use
poetry new
- create a project at current pathpoetry shell
- activate a virtual environmentpoetry add
- install packagespoetry add --dev
- install dev dependencies (deprecated, use-G dev
)
poetry update <package-name>
- update packagespoetry show
- show all packagespoetry init
- initialize an existing project withpyproject.toml
poetry install
- install dependencies of an existing project
poetry list
- list all commands. Not packages.