From 005427bdb9b9c0a3dc07c687e2049a7ce56e6445 Mon Sep 17 00:00:00 2001 From: NiJingzhe <1448976235@qq.com> Date: Mon, 7 Sep 2026 10:31:30 +0800 Subject: [PATCH] fix(release): pin hatchling core metadata to 2.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit hatchling emits Metadata-Version 2.5, which twine 6.x (the whole 6.x line, as of 6.1.0 in our lock) rejects during 'twine check' — the v2.1.0 release run failed at Verify distributions. Publish metadata at 2.4 until the twine line accepts 2.5. --- pyproject.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 4ec452e7..41680b84 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -67,6 +67,9 @@ requires = ["hatchling"] build-backend = "hatchling.build" [tool.hatch.build.targets.wheel] +# Metadata-Version 2.5 is newer than what twine 6.x validates; keep the +# published metadata at 2.4 until the toolchain accepts 2.5. +core-metadata-version = "2.4" # The Python package ships code only. Generated skill docs live in docs/skill # (built by tools/auto_docs_gen.py + tools/skillbuild.py) and are distributed # as the Agent Skill archive, not inside the wheel. @@ -74,6 +77,7 @@ packages = ["src/simplecadapi"] include = ["src/**/*"] [tool.hatch.build.targets.sdist] +core-metadata-version = "2.4" include = [ "/README.md", "/LICENSE",