Skip to content

Commit 2150f8f

Browse files
committed
Use License Expressions in pyproject.toml
With the release of PEP-639 the best practice for specifying the license is now to use a license expression in the license field and specify any license files in license-files rather than the table-based approach from PEP-621. Including the license in the classifiers is also no longer allowed when using PEP-639 and has been removed. Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
1 parent 938b73e commit 2150f8f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ name = "prometheus_client"
77
version = "0.22.0"
88
description = "Python client for the Prometheus monitoring system."
99
readme = "README.md"
10-
license = { file = "LICENSE" }
10+
license = "Apache-2.0"
11+
license-files = [
12+
"LICENSE",
13+
]
1114
requires-python = ">=3.9"
1215
authors = [
1316
{ name = "The Prometheus Authors", email = "prometheus-developers@googlegroups.com" },
@@ -33,7 +36,6 @@ classifiers = [
3336
"Programming Language :: Python :: Implementation :: CPython",
3437
"Programming Language :: Python :: Implementation :: PyPy",
3538
"Topic :: System :: Monitoring",
36-
"License :: OSI Approved :: Apache Software License",
3739
]
3840

3941
[project.optional-dependencies]

0 commit comments

Comments
 (0)