Chapter 5. Writing a Package
This chapter focuses on a repeatable process to write and release Python packages. Its intentions are:
To shorten the time needed to set up everything before starting the real work
To provide a standardized way to write packages
To ease the use of a test-driven development approach
To facilitate the releasing process
It is organized into the following four parts:
A common pattern for all packages that describes the similarities between all Python packages, and how
distutils
andsetuptools
play a central roleWhat namespace packages are and why they can be useful
How to register and upload packages in the Python Package Index (PyPI) with emphasis on security and common pitfalls
The stand-alone executables as an alternative way to package and distribute Python applications