Other files
The configuration files we showed you in this chapter are all you need to package and distribute most modern Python projects. There are, however, a few other files that you are likely to encounter if you look at other projects on PyPI:
- In early versions of Setuptools, every project needed to include a setup.py script, which was used to build the project. Most such scripts consisted only of a call to the
setuptools.setup()
function with project metadata specified as parameters. The use ofsetup.py
has not been deprecated and this is still a valid method of configuring Setuptools. - Setuptools also supports reading its configuration from a
setup.cfg
file. Before the widespread adoption ofpyproject.toml
, this was the preferred way of configuring Setuptools. - If you need to include data files or other non-standard files in your distribution packages, you will need to use a
MANIFEST.in
file to specify the files to include. You can learn more about the use...