♻️ refactor: adopt PEP 639 license metadata#19
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.
改动动机
当前项目的许可证声明仍使用旧式元数据写法,尚未完整采用 PEP 639 推荐的 SPDX 许可证表达式。为减少旧 license metadata 的兼容性负担,并让构建产物直接产出标准的
License-Expression元数据,这个 PR 将许可证配置迁移到 PEP 639 写法。改动说明
project.license从旧式表结构改为 SPDX 字符串project.license-files仓库情况
该仓库原先同时使用
license = { text = "MIT" }与License :: OSI Approved :: MIT License。PEP 639 说明
PEP 639 引入了基于 SPDX 的许可证表达方式,推荐在打包元数据中使用标准化的
License-Expression与License-File,以替代旧的 license classifier / 非标准文本写法。PEP 639 链接:https://peps.python.org/pep-0639/
验证结果
已在本地执行构建验证:
验证结果:
License-ExpressionLicense-File: LICENSE