zappa / Zappa

Serverless Python
https://zappa.ws/zappa
MIT License
3.35k stars 362 forks source link

Add Python 3.11 support #1262

Closed grantmcconnaughey closed 1 year ago

grantmcconnaughey commented 1 year ago

Context

AWS Lambda now supports Python 3.11. We should add support for that in Zappa.

https://aws.amazon.com/about-aws/whats-new/2023/07/aws-lambda-python-3-11/

Expected Behavior

Python 3.11 would be supported.

Actual Behavior

An error is raised when using Python 3.11:

Zappa (and AWS Lambda) support the following versions of Python: ['3.6', '3.7', '3.8', '3.9', '3.10']

Possible Fix

Is it necessary for Zappa to error based on the Python version in the first place? I think Zappa shouldn't need to be updated every time Lambda releases a new version, and instead could not check the Python version at all.

Steps to Reproduce

1. 2. 3.

Your Environment