Python packaging in one convenient blog post


Stefano Borini

Python packaging

Confusing? Unclear?

Semi-relevant XKCD

"The best way to learn is to teach" - Seneca the Younger - 65 CE

"The second best way is to blog it" - also Seneca the Younger - 65 CE

http://bit.ly/sbo-pycon

pyproject.toml

PEP-518

It's not just a good idea. It's the LAW!

pyproject.toml

[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"

[tool.poetry]
name = "example"
version = "0.2.5"
description = ""
authors = ["Mr. Python"]

[tool.poetry.dependencies]
python = "^3.7"
requests = "^2.22"
click = "^7.0"

[tool.poetry.dev-dependencies]

[tool.poetry.scripts]
example = 'example.cli:main'

Poetry

Manages environments. Manages dependencies. Build packages.

https://poetry.eustace.io/

It's amazing. Use it.

Thanks