Creating a PyPI-Installable Package

You need to add more metadata to your setup.py to get a package ready to distribute on PyPI. You also need to use a tool such as Twine[56] to push packages to PyPI. (Twine is a collection of utilities to help make interacting with PyPI easy and secure. It handles authentication over HTTPS to keep your PyPI credentials secure, and handles the uploading of packages to PyPI.)

This is now beyond the scope of this book. However, for information about how to start contributing through PyPI, take a look at the Python Packaging User Guide[57] and the the PyPI[58] section of the Python documentation.

Footnotes

[54]

https://docs.python.org/3/tutorial/modules.html#packages

[55]

http://docutils.sourceforge.net/rst.html

[56]

https://pypi.python.org/pypi/twine

[57]

https://python-packaging-user-guide.readthedocs.io

[58]

https://docs.python.org/3/distutils/packageindex.html