From 01db1d78e3d8440b32be4f2c540b44a309917773 Mon Sep 17 00:00:00 2001 From: "njzjz-bot (driven by OpenClaw (model: gpt-5.4))[bot]" <48687836+njzjz-bot@users.noreply.github.com> Date: Mon, 6 Apr 2026 06:39:31 +0000 Subject: [PATCH] build(pyproject): adopt PEP 639 license metadata Use SPDX license expressions and add license-files in pyproject.toml. Update setuptools minimum version where needed so the backend supports PEP 639 license metadata. Authored by OpenClaw (model: gpt-5.4) --- pyproject.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index fc0ab25..eb1e0fb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,8 @@ authors = [ {name = "Z. Zhouyin", email = "zhouyinzhanghao@gmail.com"} ] readme = "README.md" -license = {text = "MIT"} +license = "MIT" +license-files = ["LICENSE"] requires-python = ">=3.9,<3.13" dependencies = [ "numpy", @@ -42,7 +43,7 @@ dftio = "dftio.__main__:main" Repository = "https://github.com/deepmodeling/dftio" [build-system] -requires = ["setuptools>=64", "setuptools-scm>=8"] +requires = ["setuptools>=77.0.3", "setuptools>=77.0.3-scm>=8"] build-backend = "setuptools.build_meta" [tool.setuptools_scm]