Skip to content

rust(bug): include LICENSE at sdist root - #750

Merged
wei-sift merged 1 commit into
mainfrom
eng-13917-pypi-rejects-sdist-license-file-path
Aug 22, 2026
Merged

wei-sift merged 1 commit into
mainfrom
eng-13917-pypi-rejects-sdist-license-file-path

Conversation

@wei-sift

Copy link
Copy Markdown
Contributor

The v0.5.0 release published all 49 wheels but PyPI rejected the sdist:

image

maturin declares License-File: LICENSE in PKG-INFO because the crate has a LICENSE symlink (added in #695), but this crate's sdist is rooted at the workspace, so the file lands at rust/crates/sift_stream_bindings/LICENSE. PyPI resolves the declaration from the archive root, finds nothing, and fails the upload.

Adding the LICENSE to [tool.maturin] include places a copy at the archive root where the metadata already points. Scoped to format = "sdist" since wheels were never affected; they carry the license in .dist-info/licenses/.

Reproduced the rejection locally with maturin 1.14.1, the version CI resolves, then confirmed the fixed sdist resolves License-File from the root.

@wei-sift
wei-sift requested a review from solidiquis August 21, 2026 21:42
@wei-sift
wei-sift marked this pull request as ready for review August 21, 2026 21:42
@wei-sift
wei-sift merged commit 56a1a2b into main Aug 22, 2026
24 checks passed
@wei-sift
wei-sift deleted the eng-13917-pypi-rejects-sdist-license-file-path branch August 22, 2026 03:49
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.

2 participants