Skip to content

Commit e97065f

Browse files
pyproject.toml: use non-deprecated license specification
Fixes these deprecation warnings during `python -m build`: env/lib/python3.11/site-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated !! ******************************************************************************** Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0). By 2026-Feb-18, you need to update your project and remove deprecated calls or your builds will no longer be supported. See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! env/lib/python3.11/site-packages/setuptools/config/_apply_pyprojecttoml.py:61: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+) See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! Signed-off-by: Bastian Krause <[email protected]>
1 parent e43d093 commit e97065f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[build-system]
22
# Minimum requirements for the build system to execute.
33
requires = [
4-
"setuptools>=47.2.0",
4+
"setuptools>=77.0.0",
55
"wheel",
66
"setuptools_scm[toml]",
77
]
@@ -15,7 +15,8 @@ authors = [
1515
]
1616
description = "embedded systems control library for development, testing and installation"
1717
readme = "README.rst"
18-
license = { file="LICENSE" }
18+
license = "LGPL-2.0-or-later"
19+
license-files = ["LICENSE"]
1920
requires-python = ">=3.9"
2021
classifiers = [
2122
"Intended Audience :: Developers",
@@ -29,7 +30,6 @@ classifiers = [
2930
"Programming Language :: Python :: 3.11",
3031
"Programming Language :: Python :: 3.12",
3132
"Programming Language :: Python :: 3.13",
32-
"License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)",
3333
]
3434
dependencies = [
3535
"attrs>=21.4.0",

0 commit comments

Comments
 (0)