-
-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to skip auto-inclusion of all tracked files. #516
Comments
Indeed, this is hideous. Using MANIFEST.in instead of setuptools discovery and exclusion mechanisms is not only tedious, but quite unexpected. In that sense related: pypa/setuptools#3260 |
@bertsky |
@webknjaz that is surprising (to say the least), and IMO directly contradicts the statements made in setuptools documentation:
The setuptools User Guide does not state anywhere that the package discovery and data file inclusion configs are only relevant for wheels. Furthermore, AFAICS this is also not what is implemented: If I |
@bertsky AFAIK only some recent setuptools versions started discovering some sunsets of files to include. I think that's only enabled with the PEP 621 metadata declaration method, plus perhaps have an src-layout. I don't think that's universal. Plus, lists of files to include in sdists and wheel should be different. Wheels contain everything that ends up in FWIW I think in many cases it'd look like setuptools' autodiscovery behaves the same. This might be because of how building/installing from sdist works. That said, I haven't looked into what setuptools discovers today. I think it's nice that it exists for the first-time users of setuptools but I'd prefer to still have something that I can rely on consistently. And that's what this plugin does for me. cc @abravalheri do you have any insight? |
The way the Ideally So if you want to achieve finer selection of files, the existing approach is:
Notes
|
After spending a long time trying to figure out why my distributions were suddenly too large to be uploaded to PyPi, I tracked it down to my recent inclusion of
setuptools_scm
. Many people may want to usesetuptools_scm
to automatically set the package version but may not want to override the default logic of which files are included in ansdist
. Rather than requiring users to manually exclude all unwanted files in MANIFEST.in it would be nice to have a way of switching off this feature.The text was updated successfully, but these errors were encountered: