Skip to content

[#915] Update project.license to an SPDX string - #918

Merged
eoyilmaz merged 2 commits into
developfrom
915-pyproject-license-spdx-string
Jul 23, 2026
Merged

[#915] Update project.license to an SPDX string#918
eoyilmaz merged 2 commits into
developfrom
915-pyproject-license-spdx-string

Conversation

@eoyilmaz

Copy link
Copy Markdown
Owner

Summary

  • pyproject.toml's license field used the deprecated TOML-table form ({text = "GPL-3.0-or-later"}), which setuptools warns will stop being supported after 2027-02-18.
  • Switched to the SPDX expression string form (license = "GPL-3.0-or-later") and added license-files = ["LICENSE.txt"], both supported since setuptools 77.0.0.

Closes #915. First of the tickets split out from #875.

Test plan

  • python -m build --wheel no longer prints the project.license as a TOML table is deprecated warning

setuptools emits a SetuptoolsDeprecationWarning on every build for the
TOML-table `license = {text = "..."}` form, with a hard 2027-02-18
deadline after which builds stop working. Switch to the SPDX
expression string form and declare `license-files` explicitly, both
supported since setuptools 77.0.0, already satisfied by this project's
`setuptools<82` pin.

Verified via `python -m build --wheel`, the deprecation warning is
gone from the build output.
@eoyilmaz
eoyilmaz merged commit 8b61b46 into develop Jul 23, 2026
21 of 24 checks passed
@eoyilmaz
eoyilmaz deleted the 915-pyproject-license-spdx-string branch July 23, 2026 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Packaging] Update project.license to an SPDX string before setuptools' 2027-02-18 deadline

1 participant