]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind: replace deprecated license classifiers with SPDX expression 64705/head
authorKefu Chai <tchaikov@gmail.com>
Sun, 27 Jul 2025 08:02:51 +0000 (16:02 +0800)
committerKefu Chai <tchaikov@gmail.com>
Sun, 27 Jul 2025 08:14:03 +0000 (16:14 +0800)
Replace the deprecated "License :: OSI Approved :: GNU Lesser General
Public License v2 or later (LGPLv2+)" classifier with the SPDX license
expression "LGPL-2.0-or-later" in the license field.

Recent setuptools versions warn that license classifiers are deprecated
in favor of SPDX expressions in the license field. This change eliminates
the deprecation warning while maintaining the same licensing terms.

References:
- https://setuptools.pypa.io/en/stable/history.html#v77-0-0
- https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license
- https://spdx.org/licenses/LGPL-2.0-or-later.html

The warning looked like:
```
[1/1] Generating ../../../lib/cython_modules/lib.3/rados.cpython-313-x86_64-linux-gnu.so
/usr/lib/python3.13/site-packages/setuptools/dist.py:759: 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.
        ********************************************************************************

!!
  self._finalize_license_expression()
```

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
src/pybind/rados/setup.py
src/pybind/rbd/setup.py
src/pybind/rgw/setup.py

index c26d2faab510f7082e58937efa33bd929edaf9fb..c0aa1aa733473cda863b4f204ec731012170138d 100755 (executable)
@@ -185,7 +185,7 @@ setup(
         "the distributed object store using a simple file-like interface."
     ),
     url='https://github.com/ceph/ceph/tree/master/src/pybind/rados',
-    license='LGPLv2+',
+    license='LGPL-2.0-or-later',
     platforms='Linux',
     ext_modules=cythonize(
         [
@@ -203,7 +203,6 @@ setup(
     classifiers=[
         'Intended Audience :: Developers',
         'Intended Audience :: System Administrators',
-        'License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)',
         'Operating System :: POSIX :: Linux',
         'Programming Language :: Cython',
         'Programming Language :: Python :: 3'
index e7671dbb329746a374ab97fb6a79d4751e593a36..c59c4e8f789eb18e379b74b15d67bf1ac2eeb806 100755 (executable)
@@ -205,7 +205,7 @@ setup(
         "of the objects the image is striped over must be a power of two."
     ),
     url='https://github.com/ceph/ceph/tree/master/src/pybind/rbd',
-    license='LGPLv2+',
+    license='LGPL-2.0-or-later',
     platforms='Linux',
     ext_modules=cythonize(
         [
@@ -222,7 +222,6 @@ setup(
     classifiers=[
         'Intended Audience :: Developers',
         'Intended Audience :: System Administrators',
-        'License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)',
         'Operating System :: POSIX :: Linux',
         'Programming Language :: Cython',
         'Programming Language :: Python :: 3'
index 213de782955f6b8a3326665ce5935e17315d9a80..f48e8550c0b2a87a8db8ca62de4df13d323e76d0 100755 (executable)
@@ -193,7 +193,7 @@ setup(
         "and file operations."
     ),
     url='https://github.com/ceph/ceph/tree/master/src/pybind/rgw',
-    license='LGPLv2+',
+    license='LGPL-2.0-or-later',
     platforms='Linux',
     ext_modules=cythonize(
         [
@@ -210,7 +210,6 @@ setup(
     classifiers=[
         'Intended Audience :: Developers',
         'Intended Audience :: System Administrators',
-        'License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)',
         'Operating System :: POSIX :: Linux',
         'Programming Language :: Cython',
         'Programming Language :: Python :: 3',