Repository navigation
Declare the MIT license as an SPDX expression - #17
Merged
Merged
Conversation
setuptools warns that a license table and License classifiers are deprecated and unsupported after 2027-02-18. Record license = "MIT" and license-files, drop the classifier, and require setuptools>=77. Version stays 0.9.3. Co-authored-by: mikkel <mikkel@255bits.com>
mikkel
marked this pull request as ready for review
October 17, 2026 16:34
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
python -m buildwith current setuptools (84.0.0) warned that theproject.licensetable and theLicense :: OSI Approved :: MIT Licenseclassifier are deprecated and unsupported after 2027-02-18.pyproject.tomlnow uses the current form:license = "MIT"(SPDX license expression)license-files = ["LICENSE.txt"]setuptools>=77, the first release that accepts those fieldsVersion stays 0.9.3. Nothing is published.
Build output before
python -m buildsucceeded, but setuptools printed these warnings while building both the sdist and the wheel (the classifier warning twice per phase):Build dependencies in that run:
setuptools==84.0.0,wheel==0.48.0.Build output after
Same command, same setuptools and wheel. No setuptools license warnings. The only
WARNINGline is from thebuildfrontend itself (Both NO_COLOR and FORCE_COLOR environment variables are set, disabling color), which is unrelated to packaging metadata.twine check dist/*:METADATA diff
Compared the rebuilt wheel with the published patchling 0.9.3 wheel (
patchling-0.9.3-py3-none-any.whl). The license is still MIT. PEP 639 records it asLicense-Expressioninstead of the deprecatedLicensefield plus License classifier.License-File: LICENSE.txtis unchanged, the packagedLICENSE.txtbytes match (sha256cc2264ef2518a4c8c5be58a98b574ab5a96317c59d6763404a77416186d4f016), and the description body is identical.Tests
Offline suite, with
LIVE_LLMand LLM/NanoGPT API keys unset. Live tests skipped: