chore(python): upgrade python + python-fastapi to 3.13 and latest dependencies#439
Merged
Conversation
…endencies python: - Base image 3.11-alpine -> 3.13-alpine everywhere (Dockerfiles, Makefile buildargs incl. the previously missed builder Makefiles, skaffold buildArgs, READMEs) - requirements.txt: all pins to latest — Flask 2.1.1 -> 3.1.3, Werkzeug 2.2.2 -> 3.1.8, gevent 22.10.2 -> 26.5.0, greenlet 3.5.1, bjoern 3.2.2, redis 8.0.0, requests 2.34.2, sentry-sdk 2.61.1, urllib3 2.7.0 and friends - flask_sockets.py: import parse_cookie from werkzeug.sansio.http (removed from werkzeug.http in Werkzeug 2.3+) python-fastapi: - Base image 3.13-alpine; fastapi 0.114.0 -> 0.136.3, uvicorn 0.30.6 -> 0.49.0 CI: - Fix python job gate (contains was missing .packages, so the job never triggered); exact-match quotes to stop python-fastapi changes cross-triggering the python job (hunks mirror #436) - setup-python @v2 -> @v6, python-version 3.13 in both python jobs envconfig version 1.35.0 for both; environments.json regenerated. Verified locally on python 3.13: full dependency install (bjoern compiles), server in bjoern mode (all HTTP methods), GEVENT mode (flask_sockets path) and fastapi server all pass healthz/specialize/ invoke; env + builder images build on 3.13-alpine. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
What
Part of the dependency-update series (#436, #437, #438). Updates both Python environments:
python
python:3.11-alpine→python:3.13-alpine(runtime + builder Dockerfiles, Makefile buildargs, skaffold buildArgs, READMEs)flask_sockets.pyfix required for Werkzeug 3:parse_cookiemoved towerkzeug.sansio.http(same string-arg signature; call site unchanged)python-fastapi
CI (hunks mirror #436 → clean merges)
contains( needs.check.outputs, 'python' )was missing.packages— the python CI job never triggered on python changes. Now exact-match'"python"'so python-fastapi changes don't cross-trigger it either.setup-pythonv2 → v6, python 3.13 in both jobs.Releases
envconfig.jsonboth → 1.35.0 (runtimeVersion3.13);environments.jsonregenerated.Verification (local, python 3.13)
requirements.txtinstall (bjoern compiles against libev)flask_sockets+ gevent-ws — the risky path): healthz/specialize/invoke 2003.13-alpine; builder verifiedPython 3.13.13Supersedes
🤖 Generated with Claude Code