Create a Python Package From Zero to Hero
summary
Shows an end-to-end path from zero lines of code to a pip-installable package: documentation-driven design, API sketching, building a wheel in dist, and publishing with pyproject.toml metadata. Demonstrates concrete commands like UV sync, UV build, and UV publish to TestPyPI then PyPI, creating an API token and optionally using trusted publishing via GitHub Actions Google Cloud or GitLab CI CD. Mentions a real example package (Lauren the Fourth) and recommends TestPyPI dry runs.
AI-written summary · about
chapters (19)
- 0:00Introduction
- 1:55Packaging intimidating
- 3:41Define your problem
- 5:07Research solutions
- 7:09Consolidate idea
- 8:14Documentation driven design
- 10:43Write the code
- 11:45Packaging process
- 12:47Role of pyproject.toml
- 14:59Build with modern tooling
- 15:43Publish to TestPyPI
- 16:45API tokens for PyPI
- 18:33Publish to PyPI with UV
- 20:22Improved packaging story
- 21:05Trusted publishing
- 22:50Focus on the journey
- 24:16Essential package elements
- 25:20Becoming a maintainer
- 26:05Q&A
related talks
28mModern Python packaging without pain
02h 36mPython Packaging Demystified
01h 51mWrite your first package using literate programming
22mPublishing well formed Python packages
30mHow to give your Python code to someone else
23mPackaging Python in 2021
32m"Making an open source package - lessons learned"
30mThe Evolutionary Saga of Python Packaging
