Skip to content

feat: add support for Python metadata version 2.5 - #83

Merged
nodivbyzero merged 2 commits into
mainfrom
feat-metadata-ver2.5
Aug 12, 2026
Merged

feat: add support for Python metadata version 2.5#83
nodivbyzero merged 2 commits into
mainfrom
feat-metadata-ver2.5

Conversation

@nodivbyzero

Copy link
Copy Markdown
Contributor

Summary

  • Add support for parsing Python packages with metadata version 2.5
  • Version 2.5 uses the same headers as 2.4 (PEP 639 finalized)
  • Add unit tests for metadata version handling in internal/distributions/

Fixes CI failure in https://github.com/rstudio/python-distribution-parser/actions/runs/31545855913/job/93958054499?pr=81 where hatch wheels with metadata version 2.5 failed to parse.

Test plan

  • go build ./... passes
  • go test ./internal/distributions/ passes with new unit tests
  • CI workflow runs all tests including the hatch wheel integration test

@posit-snyk-bot

posit-snyk-bot commented Aug 11, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@nodivbyzero
nodivbyzero requested a review from glin August 11, 2026 23:53

@glin glin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍, once this gets into PPM do you think we need a NEWS item? I remember last time we bumped to 2.4, it was because of some python builder bug.

@nodivbyzero

Copy link
Copy Markdown
Contributor Author

@glin When we updated PPM to v0.7.0, there was a metadata version change and a breaking change - the MD5Digest field was removed. We didn't update NEWS.md to reflect that.

@nodivbyzero
nodivbyzero requested a review from jmwoliver August 12, 2026 00:40
@nodivbyzero
nodivbyzero merged commit 33f1fa7 into main Aug 12, 2026
4 checks passed
@nodivbyzero
nodivbyzero deleted the feat-metadata-ver2.5 branch August 12, 2026 15:30
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.

3 participants