Repository navigation
Use setup-python v5 in the PyPI publish job - #133
Merged
Merged
Conversation
ubuntu-latest no longer ships Python 3.9, and setup-python v1 can only use preinstalled versions, so publishing 3.8.0 failed with "Version 3.9 with arch x64 not found". v5 downloads the version when it is missing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NHUSdpfx9GTG3gM1CaYHhR
The failed 3.8.0 job ran on ubuntu-26.04, which ubuntu-latest now points to, and actions/python-versions has no Python 3.9 build for it (3.9.25: 22.04 and 24.04 only), so setup-python v5 alone would still fail. Pin the job to ubuntu-24.04. Also move pypa/gh-action-pypi-publish from the sunset master branch to release/v1. release/v1 runs twine check before uploading; a 3.9 sdist of this repo passes it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NHUSdpfx9GTG3gM1CaYHhR
foteinigk
approved these changes
Nov 13, 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.
The
3.8.0tag run passed all tests but thepublish-pypijob failed before building (run):The job ran on
ubuntu-latest, which is now Ubuntu 26.04 (Image: ubuntu-26.04in the log). Python 3.9 isn't preinstalled there, and actions/python-versions has no 3.9 build for 26.04 either (3.9.25 is built for 22.04 and 24.04 only), so upgradingsetup-pythonalone would not fix it.Changes to the
publish-pypijob:runs-on: ubuntu-24.04instead ofubuntu-latest, so Python 3.9 can be installed and the sdist is built as for previous releases.actions/setup-python@v1→@v5, which downloads versions that aren't preinstalled.pypa/gh-action-pypi-publish@master→@release/v1.masteris sunset (no commits since Feb 2024, prints a deprecation warning).release/v1accepts the sameuser/passwordinputs and runstwine checkbefore uploading; an sdist of this repo built on Python 3.9 passes it.Nothing was uploaded to PyPI, so after merging,
mastercan be fast-forwarded and the3.8.0tag moved to it to publish (a re-run of the failed job would use the old workflow at the tag's commit).The publish job only runs on tag pushes, so this PR's CI does not exercise it.
Not changed here: other Node 20 deprecation warnings (
actions/checkout@v2), andpublish-pypinot waiting for the py3.7/3.11/3.12 test jobs.🤖 Generated with Claude Code
https://claude.ai/code/session_01NHUSdpfx9GTG3gM1CaYHhR