Grug make fire! Grug make wheel!
summary
Explains the concrete packaging workflow: write code and docs, add setup.py/setup.cfg/manifest.in, use setuptools plus the wheel package to run bdist_wheel and sdist, and produce universal wheels or platform-specific wheels when C extensions exist. Shows that a wheel is just a zip file with strict metadata, demonstrates building on macOS/Windows for binaries, and uses twine upload to push archives to PyPI. Covers using virtualenv and pip (or ensurepip) so installs actually work.
AI-written summary · about
chapters (16)
- 0:00Start
- 3:13This talk, redux
- 8:45Put the code into a directory
- 12:04Now we can package fire!
- 12:14How to do the packaging
- 12:46setup.cfg
- 15:13MANIFEST.in
- 16:19Other tools you might find useful
- 17:58Packaging tools
- 18:39A universal wheel
- 19:43A platform wheel
- 20:51Source distribution
- 21:41Register your package
- 24:09Installing wheels
- 24:30Bootstrapping
- 24:51virtualenv/pyvenv
related talks
25mInside the Cheeseshop: How Python Packaging Works
40mBuilding a binary extension
28mModern Python packaging without pain
24mA tale of Python C extensions and cross-platform wheels
02h 36mPython Packaging Demystified
24mInside the Cheeseshop:How Python Packaging Works
24mThe wheelhouse of horrors
36mPython Packaging from Init to Deploy
