-
Notifications
You must be signed in to change notification settings - Fork 282
Improve distribution package #1097
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
Conversation
|
FYI: Added a small note to the PR description regarding the LICENSE is separate and will be included in the |
|
Thanks! @hegjon would you mind confirming whether this meets your needs as a redistributor? |
|
Yes, it is only the LICENSE file we are required to include. Other documentation like README and CHANGELOG will be included if the project have it. I noticed that README were no longer included, so I assumed it was unintetional. I feel it is up to upstream if they want to ship the unit tests in the sdist. As a package maintainer, it would be nice to run the tests as part of the build. An example of how Fedora was able to detect issues early by running the included unit tests: https://bugzilla.redhat.com/show_bug.cgi?id=2049642 |
|
As a side note, the tests are not included in the 3.7.4.3 version of RPM that is redistributed by Fedora: |
|
Debian also runs tests during package build. That's a fairly common practice and this usually relies on the test suite being available in sdist. |
I had seen this tweet recently about how including "unnecessary" data inside distribution packages can add up quickly. That's why I usually choose to exclude them. For my personal projects, I even go as far as to only include license files in addition to the actual package. |
|
I have no opinion on whether tests should be in the sdist; I'd like to just follow whatever recommendation the packaging folks come up with. |
|
Thinking about it some more, I would guess most users will download the |
CHANGELOGandREADME.rstin thesdist. (LICENSEis already included throughlicense.file.) https://flit.readthedocs.io/en/latest/pyproject_toml.html#sdist-sectionThis will not change that
CHANGELOGandREADME.rstare not included in thewheel. (which is by design)Explicitly exclude any test files. Those should not be part of the distribution. Anyone who needs them should clone the repo instead.README.rstfor long description. Suggested here.MANIFEST.inas it wasn't used to begin with.Fixes: python/typing_extensions#18