Skip to content

Commit 6df2ab2

Browse files
committed
Include LICENSE.txt in the sdist
Maturin declares License-File: LICENSE.txt in the sdist metadata but only copies the file into wheels, so PyPI rejected the sdist upload for claiming a license file it didn't contain. Add an explicit sdist include for it.
1 parent 48653f6 commit 6df2ab2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ find = { exclude = ["examples", "test"] }
6969
[tool.maturin]
7070
# Path to Cargo.toml for the Rust extension
7171
manifest-path = "rust/Cargo.toml"
72+
# Maturin declares License-File in the sdist metadata but only copies the file
73+
# into wheels; without this include PyPI rejects the sdist for the missing file
74+
include = [{ path = "LICENSE.txt", format = "sdist" }]
7275
# Python source directory
7376
python-source = "."
7477
# Include Python files from cflib2

0 commit comments

Comments
 (0)