-
-
Notifications
You must be signed in to change notification settings - Fork 39
Description
At my place of work we make use of check-manifest extensively to ensure that our data files are configured correctly, particularly for juniors or those less familiar with the intricacies of Python packaging. We often find that, due to a lack of understanding of how setuptools works, users will follow the suggestions made by check-manifest blindly. For example, we'll end up with users appending to the MANIFEST.in with rules like include src/*.png for icon files that should be getting installed by the setup.py or include .cache-file-not-in-gitignore when in fact a file like this should be in the .gitignore rather than included by the MANIFEST.in. More knowledgeable developers then have to pick up on these things on code review.
On our side, there's an issue of our test coverage being too low to pick up these problems and there not being enough knowledge of setuptools to know what files should and shouldn't be included in the sdist.
However I also think that it's wrong for check-manifest to make any suggestions about rules to include in the MANIFEST.in. check-manifest has no knowledge of whether a file should be included or not, and the correct course of action for a file can be editing the setup.py, .gitignore, etc instead of editing the MANIFEST.in. Therefore the suggested rules can be misleading, and end up teaching the wrong course of action to users.