Skip to content

Commit 4f3cfd1

Browse files
committed
fix(build): include LICENSE in maturin sdist
PyPI rejected the sdist for 8.2.0rc1 with: 400 License-File LICENSE does not exist in distribution file pinecone-8.2.0rc1.tar.gz at pinecone-8.2.0rc1/LICENSE Cause: maturin 1.7.8 auto-generates `License-File: LICENSE` in PKG-INFO from the SPDX license expression but doesn't actually include the LICENSE file in the sdist tarball. PEP 639's `[project] license-files` isn't recognised by maturin <1.8 (parser rejects the array form), so use the maturin-native `[tool.maturin] include` directive instead. Verified locally: `maturin sdist` now bundles pinecone-X.Y.Z/LICENSE. Side effect of run 25297301425: pinecone==8.2.0rc1 wheels are already on PyPI (they uploaded successfully before the sdist failed). That version number is burned — yank it, then retry with prereleaseSuffix=rc2. The release-rc preflight's PyPI-existence check would block any rc1 retry anyway.
1 parent 716f625 commit 4f3cfd1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎pyproject.toml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ docs = [
4040
manifest-path = "rust/Cargo.toml"
4141
module-name = "pinecone._grpc"
4242
python-source = "."
43+
# maturin 1.7.x doesn't auto-include the LICENSE file in the sdist even though
44+
# it adds `License-File: LICENSE` to PKG-INFO from the SPDX license expression.
45+
# The mismatch makes PyPI reject the sdist. Explicit include fixes both forms.
46+
include = ["LICENSE"]
4347

4448
[tool.mypy]
4549
strict = true

0 commit comments

Comments
 (0)