Skip to content

Commit a459de3

Browse files
use spdx license metadata in pyproject.toml
Updated `setuptools` minimum version with spdx support in build-system requirements. This gets rid of this warning: Running command Building editable for moin (pyproject.toml) /private/var/folders/61/qtqwzmxd7t1fb19zck5k3q0h0000gn/T/pip-build-env-bohc36n9/overlay/lib/python3.13/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. ******************************************************************************** !! corresp(dist, value, root_dir) /private/var/folders/61/qtqwzmxd7t1fb19zck5k3q0h0000gn/T/pip-build-env-bohc36n9/overlay/lib/python3.13/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 General Public License (GPL) See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! dist._finalize_license_expression() /private/var/folders/61/qtqwzmxd7t1fb19zck5k3q0h0000gn/T/pip-build-env-bohc36n9/overlay/lib/python3.13/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: GNU General Public License (GPL) See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! self._finalize_license_expression()
1 parent c31093d commit a459de3

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
@@ -8,6 +8,8 @@ maintainers = [
88
]
99
description = "MoinMoin is an easy to use, full-featured and extensible wiki software package"
1010
readme = {file="README.md", content-type="text/markdown"}
11+
license = "GPL-2.0-or-later"
12+
license-files = ["LICENSE.txt"]
1113
requires-python = ">=3.9"
1214
keywords = ["wiki", "web"]
1315
classifiers = [
@@ -18,7 +20,6 @@ classifiers = [
1820
"Intended Audience :: Information Technology",
1921
"Intended Audience :: Other Audience",
2022
"Intended Audience :: Science/Research",
21-
"License :: OSI Approved :: GNU General Public License (GPL)",
2223
"Natural Language :: English",
2324
"Operating System :: OS Independent",
2425
"Programming Language :: Python",
@@ -33,7 +34,6 @@ classifiers = [
3334
"Topic :: Office/Business :: Groupware",
3435
"Topic :: Text Processing :: Markup",
3536
]
36-
license = {text="GNU GPL v2 (or any later version)"}
3737
dependencies = [
3838
"Babel >= 2.10.0", # internationalization support
3939
"blinker >= 1.6.2", # event signalling (e.g. for change notification trigger)
@@ -93,7 +93,7 @@ include-package-data = true
9393
where = ["src"]
9494

9595
[build-system]
96-
requires = ["setuptools", "setuptools_scm[toml] >= 6.2"]
96+
requires = ["setuptools >= 77.0.3", "setuptools_scm[toml] >= 6.2"]
9797
build-backend = "setuptools.build_meta"
9898

9999
[tool.setuptools_scm]

0 commit comments

Comments
 (0)