From be5ce37d45c7725c640c58154bb2b1bdbced191f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrico=20J=C3=B6rns?= Date: Fri, 14 Aug 2026 08:39:05 +0200 Subject: [PATCH] pyproject.toml: migrate to PEP 639 license expressions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make 'license' a proper SDPX license expression. Use 'license-files' for license files. Replace the also-deprecated "License ::" classifier. See https://setuptools.pypa.io/en/latest/userguide/license_migration.html Fixes: | 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 2027-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. | ******************************************************************************** | 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: Enrico Jörns --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 499d1f087..900985648 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,8 @@ authors = [ ] description = "embedded systems control library for development, testing and installation" readme = "README.rst" -license = { file="LICENSE" } +license = "LGPL-2.1-or-later" +license-files = [ "LICENSE" ] requires-python = ">=3.10" classifiers = [ "Intended Audience :: Developers", @@ -29,7 +30,6 @@ classifiers = [ "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", "Programming Language :: Python :: 3.14", - "License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)", ] dependencies = [ "attrs>=21.4.0",