Sometimes this is enough, but usually you will want to specify additional files to distribute. The typical way to do this is to write a manifest template, called MANIFEST.in by default. The manifest template is just a list of instructions for how to generate your manifest file, MANIFEST, which is the exact list of files to include in your source distribution. The sdist command processes this template and generates a manifest based on its instructions and what it finds in the filesystem.
After this change, when I test with:
(venv) $ python setup.py sdist
The generated dist archive contains the template files. Without the manifest the sdist produced doesn't include the templates folder, probably because it doesn't have any Python files.
Ref: https://docs.python.org/3/distutils/sourcedist.html#manifest
After this change, when I test with:
The generated dist archive contains the template files. Without the manifest the
sdist
produced doesn't include thetemplates
folder, probably because it doesn't have any Python files.I think this PR should fix:
Thank you! -Bruno