Publishing well-formed Python packages
summary
Lists the concrete tools and outcomes: use pylint or black for style, mypy for typing, vulture to find dead code, pytest and coverage.py for tests, and tox/nox to automate across Python versions; package with setuptools, flit or poetry and add CI/CD and pre-commit hooks. The example package nymphs names builds with flit build, runs tests with pytest + coverage.py, reports 100% coverage, and tox automates matrix runs while vulture flags unused code. These steps result in a reproducible, maintainable package.
AI-written summary · about
chapters (10)
- 0:00Start
- 0:36Well formed package
- 1:42Linting and style: Pylint
- 3:10Static type checks: mypy
- 4:27Dead code detection: vulture
- 6:01Testing: pytest
- 7:15Test coverage: coverage.py
- 8:12Test automation: tox
- 9:16Building, packaging & publishing
- 10:43Nims - example
related talks
22mPublishing well formed Python packages
47mPublishing & Maintaining Opensource Python Packages in PyPI
28mModern Python packaging without pain
24mShipping your first Python package and automating future publishing
36mPython Packaging from Init to Deploy
02h 25mModern Python Developer's Toolkit
41mEcosystem for Reliable Python Programming
02h 36mPython Packaging Demystified
