Skip to content

Commit 7193ea9

Browse files
committed
Adjust pyproject.toml to force setuptools to emit valid metadata
When any of the glob patterns specified in the provisional field "license-files" in the "tool.setuptools" section in pyproject.toml matches a file in the package, Setuptools emits a License-File metadata entry. However, Setuptools sets the Metadata-Version to 2.1. With the implementation of PEP 639 and metadata version 2.4, this combination is now invalid and is rejected by packaging, and thus by PyPI. Reset tools.setuptools.license-files to do not match any file. This prevents invalid metadata to be generated.
1 parent 9c18721 commit 7193ea9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ twine = "twine.__main__:main"
6868
[tool.setuptools]
6969
packages = ["twine", "twine.commands"]
7070
include-package-data = true
71-
license-files = ["LICENSE"]
71+
license-files = []
7272

7373
[tool.setuptools_scm]
7474

0 commit comments

Comments
 (0)