Repository navigation
[eMudhra 53119][Python] Move the App Engine example from python38 to python311 - #1603
Open
davidmreed wants to merge 2 commits into
Open
davidmreed wants to merge 2 commits into
davidmreed wants to merge 2 commits into
Conversation
…python313 The python38 runtime is EOL and runs on Ubuntu 18.04 (bionic), which has no fixed ca-certificates package. Flask<2 does not import on Python 3.13 (Jinja2 2.x vs MarkupSafe), so the example's Flask range moves to >=3.1.3,<4, matching requirements/adapter_dev.txt. Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
… keep Flask pin python311 is the oldest App Engine Python runtime that is still in support and on Ubuntu 22.04, which has the fixed ca-certificates package. python39 is on Ubuntu 18.04, and python310 reached end of support on 2026-10-04. Revert the Flask 1 -> 3 bump: Flask<2 already fails to import on python38 today (current MarkupSafe has no soft_unicode), so that breakage is unrelated to the runtime move. Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
davidmreed
marked this pull request as ready for review
October 22, 2026 19:57
This branch has not been deployed
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.
Opened as draft because this moves the App Engine example's language runtime by more than two minor versions (Python 3.8 -> 3.11), and it could not be deployed to App Engine from here.
What changes
examples/google_app_engine/flask/app.yaml:1:runtime: python38->runtime: python311.python38andpython39run on Ubuntu 18.04 (bionic), which has no fixed ca-certificates package.python310reached end of support on 2026-10-04.python311runs on Ubuntu 22.04 (jammy), is supported until 2027-10-24, and is the smallest supported step. Google manages the OS image.Where it ships
Not covered by this PR
requirements.txt'sFlask>=1.1,<2already fails to import on the currentpython38runtime. Jinja2 2.x importsmarkupsafe.soft_unicode, which current MarkupSafe removed, soFlask>=3.1.3,<4(matchingrequirements/adapter_dev.txt:41) is an owner follow-up.import flaskfails the same way on Python 3.8, 3.10, 3.11 and 3.12.examples/aws_lambda/*_config.yaml:6still usepython3.8on Amazon Linux 2. There is no fixed package to gate on, and the fix depends on AWS. Owner follow-up.Verification
ubuntu:22.04:apt-cache policy ca-certificatesshows candidate20260816ubuntu0.22.04.1, the fixed jammy version. Whether App Engine's python311 image has picked it up is up to Google and was not verified.pip install slack_bolt "Flask>=1.1,<2", then importingflaskandslack_bolt.adapter.flask:python:3.8-slim,3.10-slim,3.11-slimand3.12-slim:ImportError: cannot import name 'soft_unicode' from 'markupsafe'.Python CIis waiting for maintainer approval (fork PR), and it does not cover this example.🤖 Generated with Claude Code
Part of the eMudhra 53119 CA-distrust remediation (CVE-2026-111943).