Skip to content

Commit f294cbb

Browse files
authored
Use License Expressions in pyproject.toml (#1111)
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 f294cbb

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

pyproject.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
[build-system]
2-
requires = ["setuptools"]
2+
requires = ["setuptools>=77.0.0"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
66
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 AND BSD-2-Clause"
11+
license-files = [
12+
"LICENSE",
13+
"NOTICE",
14+
]
1115
requires-python = ">=3.9"
1216
authors = [
1317
{ name = "The Prometheus Authors", email = "prometheus-developers@googlegroups.com" },
@@ -33,7 +37,6 @@ classifiers = [
3337
"Programming Language :: Python :: Implementation :: CPython",
3438
"Programming Language :: Python :: Implementation :: PyPy",
3539
"Topic :: System :: Monitoring",
36-
"License :: OSI Approved :: Apache Software License",
3740
]
3841

3942
[project.optional-dependencies]

0 commit comments

Comments
 (0)