poetry
poetry
is a modern python package managercurl -sSL https://install.python-poetry.org | python3 -
poetry self update
pyproject.toml
and
poetry.lock
to manage dependencies[tool.poetry]
name = "poetry-demo"
version = "0.1.0"
description = ""
authors = ["Sébastien Eustace <sebastien@eustace.io>"]
readme = "README.md"
packages = [{include = "poetry_demo"}]
[tool.poetry.dependencies]
python = "^3.7"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
poetry add pendulum
poetry run python your_script.py
or poetry run doit
poetry shell
to use poetry managed python in a shellpoetry update
to update lockfile. (or delete lockfile and run poetry install
again)poetry config --list
shows virtualenvs.path
, that contains the
python.exe
python
binary that can be passed to editor configurations as
the interpreter path