pyproject.toml の license の書き方が変わった

PEP 639 で pyproject.toml のライセンスの書き方がシンプルになりlicense = "" という形式になりました。

-license = {text = "MIT"}
+license = "MIT"

Setuptools v77.0.0 で対応が入っています。

Add initial support for license expression (PEP 639) by cdce8p · Pull Request #4706 · pypa/setuptools

ライセンスファイルは license-files = ["LICENSE"] のように指定するようになりました。また、classifiers に指定していた License 関連の項目は deprecate になりました。

https://peps.python.org/pep-0639/#deprecate-license-classifiers