From 57711c44da85e2ed9d35f4b1b04f1cb664a78de6 Mon Sep 17 00:00:00 2001 From: 72004 Date: Fri, 16 Oct 2026 01:09:09 +0500 Subject: [PATCH 1/2] Use an SPDX licence expression in pyproject.toml The project.license table and tool.setuptools.license-files are deprecated in setuptools, which warns about them on every build. Switch to the PEP 639 string form plus project.license-files, require setuptools>=77 for it, and drop the licence classifier, which setuptools rejects alongside a licence expression. --- pyproject.toml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index b8d60a7..aac3b80 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [build-system] # Defined by PEP 518 requires = [ - "setuptools>=64", + "setuptools>=77", "setuptools_scm[toml]>=7.0", "wheel", ] @@ -22,11 +22,11 @@ keywords = [ "iris", "xarray", ] -license = {text = "BSD-3-Clause"} +license = "BSD-3-Clause" +license-files = ["LICENSE"] classifiers = [ "Development Status :: 4 - Beta", "Intended Audience :: Science/Research", - "License :: OSI Approved :: BSD License", "Natural Language :: English", "Operating System :: POSIX", "Operating System :: POSIX :: Linux", @@ -56,9 +56,6 @@ Discussions = "https://github.com/SciTools/ncdata/discussions" Documentation = "https://ncdata.readthedocs.io" Issues = "https://github.com/SciTools/ncdata/issues" -[tool.setuptools] -license-files = ["LICENSE"] - [tool.setuptools.dynamic] readme = {file = "README.md", content-type = "text/markdown"} From 5bea6600d3b0d3894b970a27baa57c2fd1fa3083 Mon Sep 17 00:00:00 2001 From: 72004 Date: Fri, 16 Oct 2026 01:09:22 +0500 Subject: [PATCH 2/2] Add changelog fragment --- docs/changelog_fragments/268.dev.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 docs/changelog_fragments/268.dev.rst diff --git a/docs/changelog_fragments/268.dev.rst b/docs/changelog_fragments/268.dev.rst new file mode 100644 index 0000000..e95af23 --- /dev/null +++ b/docs/changelog_fragments/268.dev.rst @@ -0,0 +1 @@ +Replaced the deprecated licence configuration in ``pyproject.toml`` with an SPDX licence expression.