From 6a9ea4956fbc3397aa135bd20302ecdc44a1fcbd Mon Sep 17 00:00:00 2001 From: Derek Gulbranson Date: Thu, 22 Oct 2026 12:03:28 -0700 Subject: [PATCH] Declare the license as an SPDX expression (LGPL-2.1-or-later) setuptools warns that project.license as a TOML table is deprecated and stops supporting it after 2027-02-18. Use the SPDX string, list LICENSE and AUTHORS in license-files, and drop the license classifier, which setuptools refuses beside a license expression. Co-Authored-By: Claude Sonnet 5.5 --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 32e398fe4..ad94b7ae7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,13 +3,13 @@ name = "nameparser" description = "A simple Python module for parsing human names into their individual components." readme = "README.rst" requires-python = ">=3.11" -license = {text = "LGPL"} +license = "LGPL-2.1-or-later" +license-files = ["LICENSE", "AUTHORS"] authors = [{name = "Derek Gulbranson", email = "derek73@gmail.com"}] dynamic = ["version"] keywords = ["names", "parser"] classifiers = [ "Intended Audience :: Developers", - "License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3",