Unbreak the release build's metadata check - #110
Merged
jessegrabowski merged 2 commits intoAug 25, 2026
Conversation
Its v3.0.0 ships twine 7, which accepts the metadata 2.5 that hatchling now emits; the pinned twine 6 rejected it and failed every release build.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #110 +/- ##
=======================================
Coverage 97.52% 97.52%
=======================================
Files 61 61
Lines 3076 3076
=======================================
Hits 3000 3000
Misses 76 76 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Every release build has failed for the past week, v0.2.0 included, so that version never reached PyPI. Hatchling now emits
Metadata-Version: 2.5and the twine pinned inside build-and-inspect-python-package v2.18.0 rejects it as invalid. v3.0.1 of the action ships twine 7, which accepts it.Also swapped the deprecated
license = {file = ...}table for a PEP 639 expression, so the metadata carriesLicense-Expression: Apache-2.0rather than the full 11KB of license text inlined into theLicense:field.Verified locally: twine 6 reproduces the CI error on a fresh build, twine 7 passes
check --stricton both the sdist and the wheel.