Skip to content

build(backend-py): Upgrade Python from 3.9 to 3.13 - #74

Merged
mrduncan merged 2 commits into
mainfrom
ci/backend-py-pin-ubuntu-24.04
Oct 28, 2026
Merged

mrduncan merged 2 commits into
mainfrom
ci/backend-py-pin-ubuntu-24.04

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

The backend-py test job on main has been failing since ubuntu-latest moved to Ubuntu 26.04. actions/setup-python has no Python 3.9 build for 26.04, and 3.9 is end-of-life anyway.

This moves the Python backend to 3.13 in CI and in backend-py/Dockerfile. Only two pins needed bumping because their old versions don't compile on 3.13: greenlet 1.1.2 → 3.5.6 and psycopg2 2.9.3 → 2.9.13. Flask, Werkzeug, and SQLAlchemy stay on their current versions, and no app code changes.

This stops at 3.13 on purpose. Python 3.14 removes ast.Str, which Werkzeug 2.0.3 still uses, so moving past 3.13 means upgrading Flask/Werkzeug. The lint workflow stays on 3.9 on ubuntu-24.04. It's green there, and its flake8 4.0.1 hook would need its own upgrade to run on newer Python.

via matt.duncan.

--

View Junior Session [Sentry]

@sentry-junior sentry-junior Bot changed the title ci(backend-py): Pin test job to ubuntu-24.04 for Python 3.9 build(backend-py): Upgrade Python from 3.9 to 3.13 Oct 28, 2026
@mrduncan
mrduncan marked this pull request as ready for review October 28, 2026 18:52
@mrduncan
mrduncan merged commit 9398e2b into main Oct 28, 2026
15 checks passed
@mrduncan
mrduncan deleted the ci/backend-py-pin-ubuntu-24.04 branch October 28, 2026 18:57
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.

2 participants