Less known packaging features and tricks
summary
Covers lesser-known pip/setuptools/virtualenv and Python packaging features and tools that can simplify packaging and avoid common problems. Gives concrete patterns and tricks for setup.py usage, shows obscure features useful to package authors and users, and surveys some emerging alternative packaging tools.
AI-written summary · about
chapters (18)
- 0:00Intro
- 2:22What's going on in a setup.py? It's a really nasty archiver There are a bunch of options from distutils
- 3:21Setting the record straight Mandatory clarifications: packages vs distributions
- 3:58Types of archives
- 5:24File gathering: sdist
- 6:28Inside setup.py: packages (2)
- 10:30Advices for MANIFEST.in
- 13:00Inside setup.py: data_files
- 13:55A quick interlude: applications If you really need data_files you are probably trying to package an application. - Use a specialized package likes
- 16:12A quick interlude: dependencies
- 17:03Importing code in setup.py Don't do this
- 20:44Optional dependencies
- 21:51A quick interlude: Tox
- 22:30Other ways to manage environments
- 23:37Environment markers - PEP-426
- 24:58Coverage for C extensions Easy to do on Linux
- 25:38Uploading
- 28:34Ending
related talks
02h 36mPython Packaging Demystified
38mPython Packaging - one tool to pack them all
36mPython Packaging from Init to Deploy
32mInside the Cheeseshop: How Python Packaging Works
25mInside the Cheeseshop: How Python Packaging Works
30mThe Evolutionary Saga of Python Packaging
24mInside the Cheeseshop:How Python Packaging Works
40mA Few Python Tips
