Skip to contentSkip to conversation

tuna: Fix setuptools deprecation warnings for license field

PATCH New John Kacur 1 participant 1 message May 19

lore
Share & tools
lore

John Kacur

author
#0 lore raw

PATCH 1/1 tuna: Fix setuptools deprecation warnings for license field

Update pyproject.toml to use modern SPDX license expression format and remove deprecated license classifier. The license field now uses a simple string "GPL-2.0-only" instead of the deprecated {text = "..."} format, and the redundant license classifier has been removed from the classifiers list.

Also add missing SPDX-License-Identifier header to tuna/help.py to ensure all source files have proper license identification.

These changes eliminate setuptools deprecation warnings about license field format and license classifiers when building the package, while maintaining the same GPL-2.0-only license.

Assisted-by Claude Sonnet 4.5 <[email protected]>
---
 pyproject.toml | 3 +--
 tuna/help.py   | 1 +
 2 files changed, 2 insertions(+), 2 deletions(-)
pyproject.toml +1 -2
index f0caac6df053..ca149c352df0 100644
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
 name = "tuna"
 version = "0.20"
 description = "Application tuning GUI"
-license = {text = "GPL-2.0-only"}
+license = "GPL-2.0-only"
 authors = [
     {name = "Arnaldo Carvalho de Melo", email = "[email protected]"},
     {name = "John Kacur", email = "[email protected]"}
@@ -21,7 +21,6 @@ dependencies = [
 classifiers = [
     "Development Status :: 4 - Beta",
     "Intended Audience :: System Administrators",
-    "License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
     "Operating System :: POSIX :: Linux",
     "Programming Language :: Python :: 3",
     "Programming Language :: Python :: 3.10",
tuna/help.py +1 -0
index db8b4c84df63..1a9473a86875 100644
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0-only
 
 import gettext
 _ = gettext.gettext
Signature · 1 line
2.54.0