Add support for Python 3.14#2163
Merged
jonathan343 merged 4 commits intoaws:masterfrom May 5, 2026
Merged
Conversation
5f5261b to
17687fa
Compare
- Map python3.14 to cp314 with AL2023 glibc (2.34) in the packager, add it to runtime classifiers, docs, CI, and test gates - Replace removed ast.Str usage in the static analyzer with ast.Constant - Bump the v2 pipeline CodeBuild image to amazonlinux2023-x86_64-standard:5.0 so the runtime is available - Update pip to the latest version (<26.2) - Expand the pip --platform list emitted when downloading manylinux wheels so newer manylinux_2_X profiles are accepted; pip treats --platform as a literal tag and won't extrapolate, so we enumerate every glibc minor up to the runtime's. Required for Python 3.14 wheels of pandas/numpy/scipy, which only ship as manylinux_2_24+ - Bump pandas/numpy versions in the packaging integration test to ones that publish cp314 wheels
17687fa to
78d1d0d
Compare
ubaskota
approved these changes
May 5, 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.
Note
This PR builds on top of #2162 and should be merged subsequently. After merging, this PR will rebased and will result in a smaller reviewable diff.
Addresses #2150 , #2153, and #2167
Summary
This PR adds support for Python 3.14 by updating compatibility checks, runtime mappings, development dependencies, the v2 pipeline CodeBuild image, and tests.
It also includes a packager change so chalice can fetch wheels built for newer manylinux profiles. Pip treats
--platformas a literal tag and won't extrapolate to lowermanylinux_X_Yversions, so chalice now emits when downloading manylinux wheels. Without this, Python 3.14 wheels of pandas/numpy/scipy (which only ship asmanylinux_2_24+) can't be packaged.Testing
I deployed a modified version of the sample Lambda handler that prints the python version. The steps to reproduce are provided below:
app.pyfile to print the python version:By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.