Skip to content

Unbreak the release build's metadata check - #110

Merged
jessegrabowski merged 2 commits into
pymc-devs:mainfrom
jessegrabowski:fix-release-metadata
Aug 25, 2026
Merged

Unbreak the release build's metadata check#110
jessegrabowski merged 2 commits into
pymc-devs:mainfrom
jessegrabowski:fix-release-metadata

Conversation

@jessegrabowski

Copy link
Copy Markdown
Member

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.5 and 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 carries License-Expression: Apache-2.0 rather than the full 11KB of license text inlined into the License: field.

Verified locally: twine 6 reproduces the CI error on a fresh build, twine 7 passes check --strict on both the sdist and the wheel.

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-commenter

codecov-commenter commented Aug 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.52%. Comparing base (85ebae4) to head (6819084).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jessegrabowski
jessegrabowski merged commit 1005f37 into pymc-devs:main Aug 25, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants