-
Notifications
You must be signed in to change notification settings - Fork 425
Feature request: Remove Python 3.6 support #1132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Whilst Python 3.6 has hit EOL, we'll continue to support until at least the end dates provided by the announcement email:
We'll revisit this in late August, as that's when customers will no longer be able to update existing functions. |
It's when your downstream dependencies drop support for python 3.6 and their are security issues or bug fixes that don't make it to your current pinned version. This is when things get problematic. |
If this becomes a concern for the project later, we might choose to revisit this earlier, but we’re not expecting anything that changes the timeframe mentioned above. |
Either way, you will need to juggle supporting both versions this PR is an example, it is doable just extra overhead. Also note, there is no integration tests verifying python 3.6 actually works on a deployed lambda. |
Maybe to keep track of tasks like this https://github.com/awslabs/aws-lambda-powertools-python/blob/6917d90444fb9e43e7317010faaa2abb9f183464/pyproject.toml#L31 we should at least have a ticket for when Python 3.6 is removed |
Added boto3 deprecation notice which is from 2022-05-30 |
Use case
Now that Python 3.6 has been deprecated, moving up to Python 3.7 will come with some user experience improvements.
Also most of the library dependencies don't support Python 3.6 anymore in their Github Actions:
Runtime dependencies:
And same for dev tooling:
Solution/User Experience
Drop Python 3.6 from the supported list for the next couple released. And then start targeting Python 3.7+ features like enhanced typing. Add back
JMESPath
as a dependencyAnd embrace some of the cool new features in Python 3.7 like:
@dataclass
decorator could remove alot of the boilerplate code.__getattr__
could make reflection easierSolution as a diff to
develop
batch at the time of righting:Alternative solutions
Ultimately, there is no other solutions that make sense like Python 3.6 support is completely removed from AWS Lambda.
Acknowledgment
The text was updated successfully, but these errors were encountered: