Skip to content

♻️ refactor: adopt PEP 639 license metadata#29

Merged
SigureMo merged 1 commit intoShigureLab:mainfrom
ShigureNyako:refactor/adopt-pep-639-license-metadata
Mar 16, 2026
Merged

♻️ refactor: adopt PEP 639 license metadata#29
SigureMo merged 1 commit intoShigureLab:mainfrom
ShigureNyako:refactor/adopt-pep-639-license-metadata

Conversation

@ShigureNyako
Copy link
Member

改动动机

当前包元数据仍使用旧式 project.license = { text = "MIT" } 与 license classifier。为与现代 Python 打包元数据保持一致,这里迁移到 PEP 639 推荐写法,仅调整 license metadata,不涉及其他行为改动。

PEP 639 说明

本 PR 将许可证元数据改为 SPDX 表达式写法:license = "MIT",并显式声明 license-files = ["LICENSE"];同时移除旧的 License :: OSI Approved :: MIT License classifier,避免继续依赖已被 PEP 639 取代的旧式许可证声明方式。

PEP 639 链接:https://peps.python.org/pep-0639/

验证结果

  • 执行 uv build 成功生成 sdist 与 wheel
  • 检查构建产物元数据,wheel 与 sdist 均包含:
    • License-Expression: MIT
    • License-File: LICENSE

@SigureMo Please review this PR when you have time. Thanks!

@SigureMo SigureMo merged commit cac24ca into ShigureLab:main Mar 16, 2026
6 checks passed
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.

2 participants