Fedoraで行こう! 〜ビルド警告対処編〜
ビルド警告
いつもように、ちょっとしたCode更新を行った後、ビルドしたら、以下のようなWarningが出た。
pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated
!!
********************************************************************************
Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0).
By 2026-Feb-18, you need to update your project and remove deprecated calls
or your builds will no longer be supported.
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
簡潔に言うと、pyproject.tomlにおいて、project section内のlicense、もしくは、license-filesの記述方法を直してね、っていうもの。
修正箇所
当初というか、Warningが発生している時には、
[project]
...
license = { text = "MIT" }
となっていたものを、以下のように、変更。
[project]
...
license = "MIT"
と、修正をすることで、消えました。
遡れば
ただ、ログを見ていたら、別のところでも、Warning出ているようなので、それはそれで別途修正かな、と思っております。
コメント
コメントを投稿