-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Setuptools will install licenses if included in setup.cfg #1536
Conversation
930f20f
to
372623a
Compare
Addressing pypa#357 `python setup.py sdist` now includes the license file if `license_file` is included in `setup.cfg` unless it is explicitly excluded in `MANIFEST.in`. Co-Authored-By: Poyzan Nur Taneli <[email protected]>
372623a
to
ca0760a
Compare
@dtaneli Can you add some tests for this? |
Co-Authored-By: Poyzan Nur Taneli <[email protected]>
Hi @pganssle, I added some tests but I am not sure if it is better to merge these four test cases into a single test or not. Any preferences? Also, does this change warrant a changelog update? |
@dtaneli It is generally preferable to have separate tests, or parametrized tests, but I think in the spirit of DRY (don't repeat yourself), it might be better to refactor these a single parametrized test. |
And yes, this is a behavior change, it definitely needs a changelog. |
Made the tests parametrized, added a changelog entry and updated the @pganssle, during the London sprint, we discussed re-using |
@dtaneli The |
Ok, I just wanted to make sure because we found that you could actually pass a file according to https://setuptools.readthedocs.io/en/latest/setuptools.html#metadata Is there anything else that is missing for the scope of this issue? |
python setup.py sdist
now includes the license file iflicense_file
is included in
setup.cfg
unless it is explicitly excluded inMANIFEST.in
.Co-Authored-By: Poyzan Nur Taneli [email protected]
Summary of changes
Closes #357
Pull Request Checklist