From 501bde7737c873fa3c003699c1e130326174943c Mon Sep 17 00:00:00 2001 From: Jack Dimas Date: Fri, 13 Nov 2026 14:07:57 +0200 Subject: [PATCH 1/2] Use setup-python v5 in the PyPI publish job 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 Claude-Session: https://claude.ai/code/session_01NHUSdpfx9GTG3gM1CaYHhR --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a9b6878..ea9c1f3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -104,9 +104,9 @@ jobs: steps: - uses: actions/checkout@v2 - name: Set up Python 3.9 - uses: actions/setup-python@v1 + uses: actions/setup-python@v5 with: - python-version: 3.9 + python-version: "3.9" - name: Build source tarball run: python setup.py sdist - name: Publish package From 2819277da25fae4f5a3235c564e86574f18ae291 Mon Sep 17 00:00:00 2001 From: Jack Dimas Date: Fri, 13 Nov 2026 14:36:42 +0200 Subject: [PATCH 2/2] Pin publish runner to 24.04, pypi-publish to v1 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 Claude-Session: https://claude.ai/code/session_01NHUSdpfx9GTG3gM1CaYHhR --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ea9c1f3..bd5b32f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -100,7 +100,8 @@ jobs: python3_6-django2_0-tests, python3_8-django2_2-tests, python3_9-django3_2-tests ] if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') - runs-on: ubuntu-latest + # Python 3.9 has no build for ubuntu-latest (26.04) + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v2 - name: Set up Python 3.9 @@ -110,7 +111,7 @@ jobs: - name: Build source tarball run: python setup.py sdist - name: Publish package - uses: pypa/gh-action-pypi-publish@master + uses: pypa/gh-action-pypi-publish@release/v1 with: user: __token__ password: ${{secrets.pypi_api_token}}