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 LICENSE, README and CHANGES to source tarball #867
Add LICENSE, README and CHANGES to source tarball #867
Conversation
package_data is not the place for these files, they usually are included in the package with MANIFEST.in |
Useful to know, thanks. I looked up the docs for package_data and where it said:
So it seemed to be the right place for these text files. |
This is the documentation for MANIFEST.in https://packaging.python.org/guides/using-manifest-in/ In fact, depending on the tooling, some files such as LICENSE.txt are automatically included or not. The problem with package_data is that the files there are installed. With CHANGES, AUTHORS, LICENSE and similar files, you need them in the tarball (LICENSE in particular) but not installed in your system. This is the MANIFEST.in file of astopy, for example https://github.com/astropy/astropy/blob/master/MANIFEST.in |
fef0e7f
to
d6c4f9b
Compare
Thanks! There's so much information on packaging.python.org that I struggle with it as a new-to-python person. PR updated. |
@sergiopasra Is there any documentation on whether the license file should be referenced in MANIFEST.in or in setup.cfg's |
No, as far as I know. But you can use both |
Thanks. I'll worry about setup.cfg as a separate thing. |
The merge conflict needs resolving, but this is correct. Validation steps:
(ignore the changes in unrelated files - the patches are on different bases) |
Adds README, LICENSE and CHANGES to the source distribution tarball.
These files shouldn't be left hanging around after a release.
6bee632
to
56ad8d1
Compare
Rebased to lastest |
Thanks @stephenfin for the amazing instructions, I learned how to test this PR and also a little more of how the packaging works for Python :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems sound!
These files should be in the PyPI download. I've also updated the copyright year to 2020 in the license.
Fixes #866.