-
-
Notifications
You must be signed in to change notification settings - Fork 402
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
Only ship test modules in wheels required by other packages #1024
Comments
Some other applications reuse Dulwich' tests (e.g. when reimplementing its interfaces), which is why they are included. I can't remember explicitly adding docs to the wheel, but I'm open to dropping to the docs if that's not a common practice. Is there a reference somewhere that suggests they shouldn't be included? |
Can those apps clone
It seems they have been added within #223
No reference, but usually not included. Also, one shouldn't use |
Sure, but isn't that the whole point of having a package manager? We could potentially ship just the specific tests that need to be reused - but that's a non-trivial amount of work. I'll leave this bug open to track that.
I'm open to a PR that fixes this (and/or a separate issue to track it) but haven't considered it a high enough priority to work on. The only two scripts that are included in "scripts" probably don't work on windows anyway. The main executable is included as an entry point when setuptools is installed. At some point we should probably drop the distils codepath (used when setuptools is not available) now that it is deprecated. |
Then they can be a separate package. |
I think that'd be overkill. Specifically, we need to ship the following modules with the main package:
|
My understanding is that the usual convention is not to include tests or docs in binary distributions, but it's fine to include them in source distributions. so that would suggest removing the stuff in (I'm not particularly fussed about this either way, I just happened to run into a similar case elsewhere recently and so have a relatively fresh opinion) |
In fact the usual convention is just not to care about it at all and this results in pretty a lot of wheels having garbage within them, from readme, license and other files (readme goes to package metadata usually, license file is captured automatically and also goes to metadata, so no need to include it separately) to
Completely aggree.
doesn't |
experiment suggests not, and https://packaging.python.org/en/latest/guides/using-manifest-in/ certainly is only discussing sdists, but I'm happy to defer to anyone who knows better! |
It is true. It is common to exclude the tests from wheels while keeping them in sdists.
There's been numerous discussions across multiple avenues of the PyPA community. But the bottom line is that things outside your main package directory will flood the root of the |
No description provided.
The text was updated successfully, but these errors were encountered: