Skip to content

Commit 2b9ad87

Browse files
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'.
1 parent c9525da commit 2b9ad87

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,11 @@
1313

1414
DESCRIPTION = __doc__
1515
LONG_DESCRIPTION = open('README.rst').read() + open('CHANGES.rst').read()
16-
LICENSE = 'LGPLv2+'
1716

1817
CLASSIFIERS = [
1918
'Development Status :: 4 - Beta',
2019
'Intended Audience :: Developers',
2120
'Intended Audience :: Science/Research',
22-
'License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)',
2321
'Programming Language :: Cython',
2422
'Programming Language :: Python',
2523
'Programming Language :: Python :: 3.9',
@@ -47,9 +45,10 @@
4745
version="0.8.3",
4846
description=DESCRIPTION,
4947
long_description=LONG_DESCRIPTION,
48+
long_description_content_type="text/x-rst",
5049
author='Mikhail Korobov',
5150
author_email='kmike84@gmail.com',
52-
license=LICENSE,
51+
license="LGPL-2.0-or-later",
5352
url='https://github.com/kmike/datrie',
5453
classifiers=CLASSIFIERS,
5554
libraries=[('datrie', {

0 commit comments

Comments
 (0)