May 2019
Intermediate to advanced
542 pages
13h 37m
English
By default, setuptools will package the Python files it finds in our project, and other file types will be ignored. In almost any project, however, there are going to be non-Python files that we're going to want to include in our distribution package. These files fall generally into two categories: those that are part of a Python module, such as our PNG files, and those that are not, such as the README file.
To incorporate files that are not part of a Python package, we need to create a file called MANIFEST.in. This file contains include directives for file paths underneath the project root. For example, if we want to include our documentation files, ours should look like the following:
include README.rstinclude LICENSE
Read now
Unlock full access