Skip to content

⏪ build: drop hatchling <1.30 cap now that 1.30 is yanked#592

Merged
gaborbernat merged 1 commit into
tox-dev:mainfrom
gaborbernat:unpin-hatchling
Jun 1, 2026
Merged

⏪ build: drop hatchling <1.30 cap now that 1.30 is yanked#592
gaborbernat merged 1 commit into
tox-dev:mainfrom
gaborbernat:unpin-hatchling

Conversation

@gaborbernat

Copy link
Copy Markdown
Member

Follow-up to #591. That PR capped hatchling<1.30 because 1.30 emitted Metadata-Version 2.5 (PEP 794), which no released twine and PyPI accept yet.

hatchling 1.30.0 has since been yanked from PyPI, with the yank reason: "the default core metadata version was increased to 2.5 and some major projects like twine do not yet support it." pip and uv skip yanked releases during resolution, so the build now lands on 1.29.0 (Metadata-Version 2.4) without any upper bound. ⏪ The explicit cap is therefore redundant.

Dropping it back to hatchling>=1.27 keeps us forward compatible: the full chain to publishing 2.5 needs a twine release (pypa/twine#1317), then a pypa/gh-action-pypi-publish release, then dependabot bumping the pinned publish action — once that lands, a future unyanked hatchling can emit 2.5 without another pyproject edit.

Verified locally: with no cap the build resolves to hatchling 1.29.0, emits Metadata-Version 2.4, and tox -e pkg_meta passes (uv build + twine check + check-wheel-contents).

Refs:

The cap added in tox-dev#591 worked around hatchling 1.30 emitting Metadata-Version
2.5, which released twine and PyPI do not accept yet. hatchling 1.30.0 has
since been yanked from PyPI for that exact reason, so pip and uv skip it during
resolution and the build lands on 1.29.0 (Metadata-Version 2.4) on its own.

Drop the upper bound and rely on the yank. A relaxed floor keeps us forward
compatible: once twine ships pypa/twine#1317, pypa/gh-action-pypi-publish cuts
a release, and dependabot bumps the pinned publish action, a future unyanked
hatchling emitting 2.5 can be adopted without another pyproject change.
@gaborbernat gaborbernat marked this pull request as draft June 1, 2026 03:13
@gaborbernat gaborbernat marked this pull request as ready for review June 1, 2026 03:15
@gaborbernat gaborbernat merged commit 5597a0a into tox-dev:main Jun 1, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant