Repository navigation
fix(release): decouple publish-pypi from runner's system Python - #1700
Merged
Merged
Conversation
actions/setup-python needs a prebuilt (version, runner-OS) interpreter from GitHub's manifest; ubuntu-latest moving to 26.04 dropped the 3.9 build, breaking the 26.3.4 release's PyPI publish job. uv fetches its own interpreters independent of the runner OS, so use it instead.
boddumanohar
approved these changes
Nov 20, 2026
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.
Summary
publish-pypiusedactions/setup-python@v3pinned to Python 3.9 onubuntu-latest. GitHub'subuntu-latestmoved to 26.04, which has no published 3.9 build, so the job failed (hit during the 26.3.4 release — PyPI publish failed whilepublish-imagesucceeded independently).setup-python+pip install uv tox tox-uvwithastral-sh/setup-uv@v5+uv tool install tox --with tox-uv. uv provisions its own interpreters frompython-build-standalone, independent of the runner OS, so this doesn't break again the next time a runner image drops an old Python build.Test plan
astral-sh/setup-uv@v5's bundled source callscore.addPath("$HOME/.local/bin")unconditionally, so thetoxbinary installed viauv tool installis onPATHfor later steps (verified against the pinned v5 tag'sdist/setup/index.js, not just themainbranch).publish-pypicompletes end to end.