♻️ refactor: adopt PEP 639 license metadata#29
Merged
SigureMo merged 1 commit intoShigureLab:mainfrom Mar 16, 2026
Merged
Conversation
SigureMo
approved these changes
Mar 16, 2026
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.
改动动机
当前包元数据仍使用旧式
project.license = { text = "MIT" }与 license classifier。为与现代 Python 打包元数据保持一致,这里迁移到 PEP 639 推荐写法,仅调整 license metadata,不涉及其他行为改动。PEP 639 说明
本 PR 将许可证元数据改为 SPDX 表达式写法:
license = "MIT",并显式声明license-files = ["LICENSE"];同时移除旧的License :: OSI Approved :: MIT Licenseclassifier,避免继续依赖已被 PEP 639 取代的旧式许可证声明方式。PEP 639 链接:https://peps.python.org/pep-0639/
验证结果
uv build成功生成 sdist 与 wheelLicense-Expression: MITLicense-File: LICENSE@SigureMo Please review this PR when you have time. Thanks!