fix: bundle LICENSE into the sdist (unblocks PyPI publish) - #92
Merged
Conversation
maturin auto-stamps 'License-File: LICENSE' into the package metadata but did not include the file in the sdist (LICENSE is at the workspace root, outside the crate manifest dir), so PyPI rejected v0.1.0 with '400 License-File LICENSE does not exist in distribution file'. Add [tool.maturin] include=["LICENSE"]; the sdist now contains emry-0.1.0/LICENSE and the wheel carries it in dist-info.
(PyPI + Python-versions badges populate once v0.1.0 publishes.)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The v0.1.0 release built fine and authenticated to PyPI via Trusted Publishing, but the upload was rejected:
maturin auto-stamps
License-File: LICENSEinto the package metadata, but it did not include the file in the sdist —LICENSElives at the workspace root, outside thecrates/emry-pymanifest dir. PyPI validates that declared license files exist in the distribution, hence the 400.Fix:
[tool.maturin] include = ["LICENSE"]. Verified locally:emry-0.1.0/LICENSEemry-0.1.0.dist-info/licenses/LICENSENothing was published (PyPI rejected the upload), so
0.1.0is still free. After this merges I'll re-tagv0.1.0on the fixed commit to re-trigger the release.