-
-
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 uses ["LICEN[CS]E*", "COPYING*", "NOTICE*", "AUTHORS*"]
when license-files
is not explicitly configured.
#3874
Comments
Hi @fizyk, the field If you set The meaning of setting By default setuptools will consider the following glob patterns to populate Sorry if that is a complicated topic, it took me a long time to wrap my head around this.
I am afraid that until PEP 639 comes out in it's final form and is approved, we are not going to touch If you wish to omit [tool.setuptools]
license-files = ["LICENSE"] Configuration reference: https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html#setuptools-specific-configuration (Although I haven't tested it myself... It might be the case that even if |
["LICEN[CS]E*", "COPYING*", "NOTICE*", "AUTHORS*"]
when license-files
is not explicitly configured.
Okay.... but if I have the The |
Interesting. Thank you very much for pointing that out. That is why "COPYING*" and "NOTICE*" are not matching but "LI[CS]ENSE*" and "AUTHORS*" are matching... There are wrong whitespaces in the JSON schema. I didn't thought it would add the default value (I thought it would use it only as documentation). I will try to fix the discrepancy tomorrow morning. But then, |
@fizyk Can this issue be closed? As I understand it the original problem was with
Both files are also present in -- |
@cdce8p yes, this issue definitely can be closed |
setuptools version
67.6.0 (=>61.0.0)
Python version
3.11.0
OS
ubuntu
Additional environment information
This happens when I build package with build/setuptools
Description
I recently moved packages configuration to the pyproject.toml from setup.cfg, and pointed to the bad LICENSE file (instead of COPYING.lesser).
Building package gave me this warning:
But the wheel's METADATA file had this entry instead:
License-File: AUTHORS.rst
Link to the build:
https://github.com/ClearcodeHQ/pytest-redis/actions/runs/4513863420
Expected behavior
Build will either fail, or will not include any information about the license file.
How to Reproduce
pipenv install --dev
pipenv run python -m build .
cat pytest_redis.egg-info/PKG-INFO | grep License-File
Output
The text was updated successfully, but these errors were encountered: