Packaging Django Apps for Distribution on PyPI
summary
Concrete steps for packaging a reusable Django app: use a src layout so tests exercise the installed package, declare metadata and deps with setuptools and follow PEP 440 for versions, build both wheel and source sdist, verify included files with check-manifest, and upload securely with twine (try the PyPI sandbox first). Document install, supported Django/Python versions, public API and templates, include tests, tag releases on a code host, and be prepared to maintain releases.
AI-written summary · about
chapters (12)
- 0:00Start
- 1:25What Is a Package
- 3:36What Makes a Good App Django Apps
- 4:46Url Namespaces
- 6:46Version Numbering
- 7:19Documentation
- 8:42Readme
- 9:23Formatting the Readme
- 9:52Setup Tools
- 10:14Keyword Arguments
- 11:56Check Manifest
- 14:46Why Build Source Distributions
related talks
29mScaling Django to 500 apps
53mDjango productivity tips and tricks
32mContinuous Deployment and Release of Django Apps
53mDjango productivity tips and tricks
26mWhat Django Deployment is Really About
38mEnd-to-End Django on Kubernetes
31mThis Old Pony: Working With Legacy Django Apps
30mSetting up your development environment for Django
