Skip to content

Commit 3c60db9

Browse files
PEP 639 license information
1. Declare licenses using keys `license` and `license-files`, as per PEP 639: * license: SPDX license expression * license-files: list of license file glob patterns 2. Keep the Trove classifier in an attempt to remain compatible with tools that do not support PEP 639 yet, such as pip-licenses. Hopefully the build system will not complain about the redundant/obsolete classifier. In theory, the build system maturin ≥ 1.9 supports PEP 639, which means the proper licensing metadata should be included in packages: https://www.maturin.rs/changelog.html In practice, maturin currently does not take license-files into account and the LICENSE file is therefore missing from packages. I expect this maturin bug to be fixed in uppcoming version 1.9.3.
1 parent a3f28ba commit 3c60db9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ description = "An extremely fast Python linter and code formatter, written in Ru
99
authors = [{ name = "Astral Software Inc.", email = "hey@astral.sh" }]
1010
readme = "README.md"
1111
requires-python = ">=3.7"
12-
license = { file = "LICENSE" }
12+
license = "MIT"
13+
license-files = ["LICENSE"]
1314
keywords = [
1415
"automation",
1516
"flake8",

0 commit comments

Comments
 (0)