July 2017
Beginner to intermediate
340 pages
7h 43m
English
When creating a source or binary release, Setuptools will include all the packages modules and data files, the setup.py file, and a few other files automatically in the tarball. But files like the PIP requirements will not be included for you.
In order to add them to your distribution, you need to add a MANIFEST.in file, which contains the list of files to include.
The file follows a simple glob-like syntax, described at https://docs.python.org/3/distutils/commandref.html#creating-a-source-distribution-the-sdist-command, where you point a file or a directory (including glob patterns) and say if you want to include or prune the matches.
Here's an example from Runnerly:
include requirements.txt include README.rst include ...