pylibfdt: correct license information
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 7 Jun 2025 11:32:17 +0000 (13:32 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 9 Jun 2025 20:07:21 +0000 (14:07 -0600)
Setuptools 78.1.1 shows warnings:

* Pattern 'GPL' did not match any files.
* Pattern 'BSD-2-Clause' did not match any files.
* SetuptoolsDeprecationWarning: License classifiers are deprecated.

Cf. https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Bryan Brattlof <bb@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
scripts/dtc/pylibfdt/setup.py

index c6fe5a6..487e669 100755 (executable)
@@ -158,12 +158,10 @@ setup(
     long_description_content_type="text/plain",
     url="https://git.kernel.org/pub/scm/utils/dtc/dtc.git",
     license="BSD",
-    license_files=["GPL", "BSD-2-Clause"],
+    license_files=["Licenses/gpl-2.0.txt", "Licenses/bsd-2-clause.txt"],
 
     classifiers=[
         "Programming Language :: Python :: 3",
-        "License :: OSI Approved :: BSD License",
-        "License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
         "Operating System :: OS Independent",
     ],