From 744bdd5a6d4661004eae19ff0738eba843885618 Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Wed, 29 Oct 2025 16:37:18 -0600 Subject: [PATCH] MNT: Use SPDX license expression * Use the recommended SPDX license expression string for the license identifier. - c.f. https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license * Remove the trove classifier as well, given DeprecationWarning. > ******************************************************************************** > 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. > ******************************************************************************** * Additionally add long_description_content_type to pass 'twine check --strict'. --- setup.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 6046f1c..b0887cc 100755 --- a/setup.py +++ b/setup.py @@ -13,13 +13,11 @@ DESCRIPTION = __doc__ LONG_DESCRIPTION = open('README.rst').read() + open('CHANGES.rst').read() -LICENSE = 'LGPLv2+' CLASSIFIERS = [ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Intended Audience :: Science/Research', - 'License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)', 'Programming Language :: Cython', 'Programming Language :: Python', 'Programming Language :: Python :: 3.9', @@ -47,9 +45,10 @@ version="0.8.3", description=DESCRIPTION, long_description=LONG_DESCRIPTION, + long_description_content_type="text/x-rst", author='Mikhail Korobov', author_email='kmike84@gmail.com', - license=LICENSE, + license="LGPL-2.1-or-later", url='https://github.com/kmike/datrie', classifiers=CLASSIFIERS, libraries=[('datrie', {