Skip to content

Commit 176d188

Browse files
committed
pybind: replace deprecated license classifiers with SPDX expression
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 <[email protected]>
1 parent 5abc34b commit 176d188

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

src/pybind/rados/setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def cythonize(x, **kwargs):
185185
"the distributed object store using a simple file-like interface."
186186
),
187187
url='https://github.com/ceph/ceph/tree/master/src/pybind/rados',
188-
license='LGPLv2+',
188+
license='LGPL-2.0-or-later',
189189
platforms='Linux',
190190
ext_modules=cythonize(
191191
[
@@ -203,7 +203,6 @@ def cythonize(x, **kwargs):
203203
classifiers=[
204204
'Intended Audience :: Developers',
205205
'Intended Audience :: System Administrators',
206-
'License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)',
207206
'Operating System :: POSIX :: Linux',
208207
'Programming Language :: Cython',
209208
'Programming Language :: Python :: 3'

src/pybind/rbd/setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def cythonize(x, **kwargs):
205205
"of the objects the image is striped over must be a power of two."
206206
),
207207
url='https://github.com/ceph/ceph/tree/master/src/pybind/rbd',
208-
license='LGPLv2+',
208+
license='LGPL-2.0-or-later',
209209
platforms='Linux',
210210
ext_modules=cythonize(
211211
[
@@ -222,7 +222,6 @@ def cythonize(x, **kwargs):
222222
classifiers=[
223223
'Intended Audience :: Developers',
224224
'Intended Audience :: System Administrators',
225-
'License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)',
226225
'Operating System :: POSIX :: Linux',
227226
'Programming Language :: Cython',
228227
'Programming Language :: Python :: 3'

src/pybind/rgw/setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def cythonize(x, **kwargs):
193193
"and file operations."
194194
),
195195
url='https://github.com/ceph/ceph/tree/master/src/pybind/rgw',
196-
license='LGPLv2+',
196+
license='LGPL-2.0-or-later',
197197
platforms='Linux',
198198
ext_modules=cythonize(
199199
[
@@ -210,7 +210,6 @@ def cythonize(x, **kwargs):
210210
classifiers=[
211211
'Intended Audience :: Developers',
212212
'Intended Audience :: System Administrators',
213-
'License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)',
214213
'Operating System :: POSIX :: Linux',
215214
'Programming Language :: Cython',
216215
'Programming Language :: Python :: 3',

0 commit comments

Comments
 (0)