Skip to content

Commit ad0b40f

Browse files
larsonerclaude
andcommitted
build: emit core metadata 2.4 until twine accepts 2.5
hatchling 1.32.0 (2026-08-11) bumped the default core metadata version to 2.5, which the twine run by build-and-inspect-python-package rejects ('InvalidDistribution: 2.5 is not a valid metadata version'). Nobody noticed because build-and-inspect needs the test job, which has been red since mid-July (see previous commit). Verified locally: with this setting both the wheel and sdist emit Metadata-Version 2.4 and pass 'twine check --strict'. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 23cc061 commit ad0b40f

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ build-backend = "hatchling.build"
55
[tool.hatch.version]
66
source = "vcs"
77

8+
# hatchling 1.32 emits core metadata 2.5 by default, which twine (as run by
9+
# build-and-inspect-python-package) rejects. TODO: remove once twine there
10+
# accepts metadata 2.5.
11+
[tool.hatch.build.targets.sdist]
12+
core-metadata-version = "2.4"
13+
14+
[tool.hatch.build.targets.wheel]
15+
core-metadata-version = "2.4"
16+
817
# https://peps.python.org/pep-0621/
918
[project]
1019
name = "magicgui"

0 commit comments

Comments
 (0)