-
Notifications
You must be signed in to change notification settings - Fork 134
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
Missing license in sdist #379
Comments
See also #525 |
As a partial workaround, a license file specified in If the license files are checked in to the VCS, |
FYI, the wheel pulls the LICENSE file via a name-based search: flit/flit_core/flit_core/wheel.py Line 185 in ee17c70
pipx run build --wheel produces a wheel with the license file(s), but pipx run build doesn't, since it builds the wheel from the SDist, which is missing these files by default.
Specifying |
I ran into this today and found it very surprising. The documentation from PyPA for It's especially annoying when trying to release a package on conda-forge, which both builds conda packages from SDist and is pretty strict about requiring a LICENSE file. Now I need to do another PyPI release in order to get a valid conda-forge package. |
License file are automatically added when building wheel:
https://github.com/takluyver/flit/blob/8f93601d05abe00c833663df541200114dbf3ad1/flit_core/flit_core/wheel.py#L202-L204
However those files are missing in the
sdist
(unless using a specific include config).Shouldn't those license files be included in the
sdist
automatically ?xref pypa/packaging#357 / pypa/packaging#358
The text was updated successfully, but these errors were encountered: