Skip to content

Commit 8579ffc

Browse files
authored
build(pyproject): adopt PEP 639 license metadata (#964)
Problem - Several packages still use deprecated table-based `project.license` metadata. - PEP 639 standardizes SPDX `license` plus `license-files`. Change - Replace deprecated `project.license = {file/text = ...}` with an SPDX expression. - Add `project.license-files`. - Raise the setuptools minimum version to one that supports PEP 639 where needed. - Remove legacy `License ::` classifiers superseded by the SPDX expression. Notes - This change is metadata-only and does not alter runtime behavior. Authored by OpenClaw (model: gpt-5.4) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Updated build system requirements (setuptools ≥77.0.3) * Clarified project license declaration to LGPL-3.0-or-later <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 6af9314 commit 8579ffc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["setuptools>=61", "setuptools_scm[toml]>=7"]
2+
requires = ["setuptools>=77.0.3", "setuptools_scm[toml]>=7"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
@@ -10,13 +10,13 @@ authors = [
1010
{name = "DeepModeling"},
1111
{name = "Han Wang", email = "wang_han@iapcm.ac.cn"},
1212
]
13-
license = {file = "LICENSE"}
13+
license = "LGPL-3.0-or-later"
14+
license-files = ["LICENSE"]
1415
classifiers = [
1516
"Programming Language :: Python :: 3.10",
1617
"Programming Language :: Python :: 3.11",
1718
"Programming Language :: Python :: 3.12",
1819
"Programming Language :: Python :: 3.13",
19-
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
2020
]
2121
dependencies = [
2222
'numpy>=1.14.3',

0 commit comments

Comments
 (0)