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 <31743851+ptaneli@users.noreply.github.com>
372623a to
ca0760a
Compare
|
@dtaneli Can you add some tests for this? |
Co-Authored-By: Poyzan Nur Taneli <31743851+ptaneli@users.noreply.github.com>
|
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 sdistnow includes the license file iflicense_fileis included in
setup.cfgunless it is explicitly excluded inMANIFEST.in.Co-Authored-By: Poyzan Nur Taneli 31743851+ptaneli@users.noreply.github.com
Summary of changes
Closes #357
Pull Request Checklist