Skip to content

fix: bundle LICENSE into the sdist (unblocks PyPI publish) - #92

Merged
vxfemboy merged 2 commits into
mainfrom
fix-sdist-license
Jun 26, 2026
Merged

fix: bundle LICENSE into the sdist (unblocks PyPI publish)#92
vxfemboy merged 2 commits into
mainfrom
fix-sdist-license

Conversation

@vxfemboy

Copy link
Copy Markdown
Member

The v0.1.0 release built fine and authenticated to PyPI via Trusted Publishing, but the upload was rejected:

400 License-File LICENSE does not exist in distribution file emry-0.1.0.tar.gz at emry-0.1.0/LICENSE

maturin auto-stamps License-File: LICENSE into the package metadata, but it did not include the file in the sdist — LICENSE lives at the workspace root, outside the crates/emry-py manifest dir. PyPI validates that declared license files exist in the distribution, hence the 400.

Fix: [tool.maturin] include = ["LICENSE"]. Verified locally:

  • sdist now contains emry-0.1.0/LICENSE
  • wheel carries emry-0.1.0.dist-info/licenses/LICENSE

Nothing was published (PyPI rejected the upload), so 0.1.0 is still free. After this merges I'll re-tag v0.1.0 on the fixed commit to re-trigger the release.

vxfemboy added 2 commits June 26, 2026 19:37
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.)
@vxfemboy
vxfemboy merged commit deed884 into main Jun 26, 2026
6 checks passed
@vxfemboy
vxfemboy deleted the fix-sdist-license branch June 26, 2026 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant