Skip to content

Conversation

@13steinj
Copy link
Contributor

  • I have added a news fragment under changelog.d/ (if the patch affects the end users)

Summary of changes

Since the 20250708 release, the python-build-standalone project does not provide checksum files for individual artifacts, but rather a single SHA256SUMS manifest file containing checksums for all artifacts. However, since June 3, the GitHub API
directly provides checksums for release artifacts.

Because we always fetch the latest release and it's been over a month since the last cached index file, we can just save the checksums in out cached index of Python versions.

fixes #1652
closes #1655

Test plan

Tested by running pipx install --python python3.10 --fetch-missing-python on a machine without python3.10

@13steinj 13steinj force-pushed the fix-fetch-missing-python-checksums branch 2 times, most recently from e9ce1bb to dc2efa9 Compare August 27, 2025 16:30
Since the [20250708](https://github.com/astral-sh/python-build-standalone/releases/tag/20250708)
release, the [python-build-standalone](https://github.com/astral-sh/python-build-standalone)
project does not provide checksum files for individual artifacts, but
rather a single `SHA256SUMS` manifest file containing checksums for all
artifacts. However, since June 3, the GitHub API
[directly provides checksums for release artifacts](https://github.blog/changelog/2025-06-03-releases-now-expose-digests-for-release-assets/).

Because we always fetch the latest release and it's been over a month
since the last cached index file, we can just save the checksums in
out cached index of Python versions.
@13steinj 13steinj force-pushed the fix-fetch-missing-python-checksums branch from dc2efa9 to f2acbd1 Compare August 28, 2025 20:25
@13steinj
Copy link
Contributor Author

I've re-pushed updating the testdata, since the tests failed last time.

@dukecat0
Copy link
Member

LGTM, Thanks!

@dukecat0 dukecat0 merged commit 5b2211e into pypa:main Sep 28, 2025
9 of 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.

Checksum validation failing when fetching missing python

2 participants