From 4e6e8b7568a0f104422f06cb901f484bf870e047 Mon Sep 17 00:00:00 2001 From: Adib Kabir Date: Tue, 1 Dec 2026 08:48:19 -0800 Subject: [PATCH] build: replace deprecated license classifier with SPDX expression (IN-1.8) --- news/in-1-8-spdx-license.rst | 23 +++++++++++++++++++++++ pyproject.toml | 5 +++-- 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 news/in-1-8-spdx-license.rst diff --git a/news/in-1-8-spdx-license.rst b/news/in-1-8-spdx-license.rst new file mode 100644 index 0000000..95ec609 --- /dev/null +++ b/news/in-1-8-spdx-license.rst @@ -0,0 +1,23 @@ +**Added:** + +* + +**Changed:** + +* + +**Deprecated:** + +* + +**Removed:** + +* + +**Fixed:** + +* License deprecation warning when building the package, by using the SPDX expression ``BSD-3-Clause`` instead of the license classifier. + +**Security:** + +* diff --git a/pyproject.toml b/pyproject.toml index ffb6861..70d7d7d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["setuptools>=62.0", "setuptools-git-versioning>=2.0"] +requires = ["setuptools>=77.0", "setuptools-git-versioning>=2.0"] build-backend = "setuptools.build_meta" [project] @@ -17,12 +17,13 @@ description = "Screen protein diffraction images for well diffracting samples" keywords = ['diffraction', 'protein crystallography', 'x-ray', 'ice ring'] readme = "README.rst" requires-python = ">=3.12, <3.15" +license = "BSD-3-Clause" +license-files = ["LICENSE.rst"] classifiers = [ 'Development Status :: 5 - Production/Stable', 'Environment :: Console', 'Intended Audience :: Developers', 'Intended Audience :: Science/Research', - 'License :: OSI Approved :: BSD License', 'Operating System :: MacOS :: MacOS X', 'Operating System :: Microsoft :: Windows', 'Operating System :: POSIX',