[#915] Update project.license to an SPDX string - #918
Merged
Conversation
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.
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pyproject.toml'slicensefield used the deprecated TOML-table form ({text = "GPL-3.0-or-later"}), which setuptools warns will stop being supported after 2027-02-18.license = "GPL-3.0-or-later") and addedlicense-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 --wheelno longer prints theproject.license as a TOML table is deprecatedwarning