Skip to content

Drop support for Python 3.9#2162

Merged
jonathan343 merged 6 commits intoaws:masterfrom
jonathan343:deprecate-3.9
May 4, 2026
Merged

Drop support for Python 3.9#2162
jonathan343 merged 6 commits intoaws:masterfrom
jonathan343:deprecate-3.9

Conversation

@jonathan343
Copy link
Copy Markdown
Collaborator

@jonathan343 jonathan343 commented May 1, 2026

Note

  • Python 3.9 reached end-of-life on 2025-10-31. It is no longer supported and does not receive security updates. See PEP 596 for more details.
  • AWS Lambda deprecated Python 3.9 on Dec 15, 2025. See Deprecated runtimes for more details.

Addresses #2082 and #2125 by moving examples off of Python 3.7.

Overview

This PR drops Python 3.9 support and updates Chalice to require Python 3.10 or newer. This aligns the package metadata, runtime selection logic, CI matrix, docs, and tests around the currently supported Python runtime range.

Testing

  • Ran make prcheck successfully
  • Re-generated Chalice docs to ensure the Sphinx upgrade didn't break anything
  • Sanity checked a Python 3.9 Lambda function deployment using chalice helloworld, chalice deploy, calling the function, and chalice delete

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/setup-node@v6
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: I'll create a follow up PR to move these to commit SHAs. I'd like to keep this as a separate PR instead of including it here.

- uses: actions/setup-node@v6
with:
node-version: '14'
node-version: '24'
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was required since AWS CDK dropped support for Node v14 in 2025-05-30 according to Node.js versions no longer supported. I decided to bump us onto the latest supported version, Node v14.

Comment thread setup.py
@jonathan343 jonathan343 mentioned this pull request May 2, 2026
1 task
@jonathan343 jonathan343 merged commit 1537dcc into aws:master May 4, 2026
12 checks passed
@jonathan343 jonathan343 deleted the deprecate-3.9 branch May 4, 2026 21:08
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