Jul 22, 2024
pip install
and requirements.txt
pip install
and requirements.txt
pyproject.toml
file
pyproject.toml
filepoetry add <package>
pyproject.toml
with dependency detailspoetry add pytest
pytest
and its dependenciespoetry show
poetry.lock
file to track dependenciespoetry remove <package>
pyproject.toml
poetry add <package>@<version>
poetry add requests@2.2.1
pyproject.toml
^
): E.g., ^2.2
(latest version up to major version)~
): E.g., ~2.2
(latest version up to minor version)^
for good balance of control and simplicitypoetry show <package>
poetry show
poetry install
poetry shell
virtualenvs
folderpoetry version <increment>
poetry version minor
)pyproject.toml
1.0.0-alpha.1
, 1.0.0-rc.1
poetry build
poetry publish --build