Skip to content

Commit 6cd157a

Browse files
Adopt PEP 639 "license" field (#914)
* PEP 639 compliance Keep the redundant Trove classifier for now, until tools such as pip-licenses support PEP 639. * No need to explictly specify LICENSE file Indeed flit will automatically pick up files with standard names, including `LICEN[CS]E*`: https://flit.pypa.io/en/stable/pyproject_toml.html#new-style-metadata * Bump flit to 3.11 for basic PEP 639 support https://flit.pypa.io/en/stable/history.html#version-3-11 * flit 3.11 does not like the License classifier flit_core.config.ConfigError: License classifiers are deprecated in favor of the license expression. Remove the 'License :: OSI Approved :: MIT License' classifier
1 parent bdaea36 commit 6cd157a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
[build-system]
2-
requires = ["flit-core >= 3.8"]
2+
requires = ["flit-core >= 3.11"]
33
build-backend = "flit_core.buildapi"
44

55
[project]
66
name = "build"
77
description = "A simple, correct Python build frontend"
88
readme = "README.md"
99
requires-python = ">= 3.9"
10-
license.file = "LICENSE"
10+
license = "MIT"
1111
authors = [
1212
{ name = "Filipe Laíns", email = "[email protected]" },
1313
{ name = "Bernát Gábor", email = "[email protected]" },
1414
{ name = "layday", email = "[email protected]" },
1515
{ name = "Henry Schreiner", email = "[email protected]" },
1616
]
1717
classifiers = [
18-
"License :: OSI Approved :: MIT License",
1918
"Programming Language :: Python :: 3",
2019
"Programming Language :: Python :: 3 :: Only",
2120
"Programming Language :: Python :: 3.9",

0 commit comments

Comments
 (0)