Skip to content

Add manifest including non-Python files too#190

Open
kinow wants to merge 1 commit intomapbox:masterfrom
kinow:add-manifest-file
Open

Add manifest including non-Python files too#190
kinow wants to merge 1 commit intomapbox:masterfrom
kinow:add-manifest-file

Conversation

@kinow
Copy link

@kinow kinow commented Jan 11, 2022

Ref: https://docs.python.org/3/distutils/sourcedist.html#manifest

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.

I think this PR should fix:

Thank you!
-Bruno

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant