Grand Rapids Python Users Group presentation on Poetry and pipx.
https://github.com/GRPUG/grpug-poetry-demo
Poetry
View Slide
virtualenv +pip + pip-tools +twine
PEP 518●●[build-system]requires = ["setuptools", "wheel"]
Poetry is a...●●●[build-system]requires = ["poetry>=0.12"]build-backend = "poetry.masonry.api"
Poetry does not...●●●
Why not...●●●
VersionSpecification
=1.2.3
~1.2.3
^1.2.3
*
{ git = “https://github.com/owner/repo”,rev = “3846693f2daea2a9f156aba10512161d3a7ed5f6” }
{ git = “https://github.com/owner/repo”,rev = “v1.0” }
{ git = “https://github.com/owner/repo”,rev = “develop” }
{ path = “../my/local/package” }
GenericCommands
$ poetry new
$ poetry init
$ poetry add
$ poetry add --dev
$ poetry lock
$ poetry show --tree
$ poetry run
PackagingCommands
$ poetry build
$ poetry publish
$ poetry config http-basic.pypi
https://pypi.org/manage/account/token/
$ poetry config pypi-token.pypi
pipx
pip + virtualenv
InstallationCommands
$ pipx install
$ pipx upgrade
Demo