-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
fix: remove py3.6 support and add py3.9 and py3.10 #2311
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #2311 +/- ##
===========================================
+ Coverage 93.58% 94.47% +0.89%
===========================================
Files 90 97 +7
Lines 6124 7062 +938
Branches 1260 1434 +174
===========================================
+ Hits 5731 6672 +941
+ Misses 183 177 -6
- Partials 210 213 +3
Continue to review full report at Codecov.
|
@@ -66,6 +66,7 @@ def read_requirements(req="base.txt"): | |||
"NOTICE", | |||
"THIRD_PARTY_LICENSES", | |||
), | |||
python_requires=">=3.7, <=4.0, !=4.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we restrict this to only supported versions instead of auto enabling new python versions under 4.0?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rethinking this. Since this repo is a library, leaving it open like this is likely fine. We may run into problems if we use newer lang features but we have to support the min version anyways.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why <=4.0
and !=4.0
instead of just <4.0
?
(Or better yet only >=3.7
https://iscinumpy.dev/post/bound-version-constraints/)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are still some references to python 3.6 in DEVELOPMENT_GUIDE.md
but otherwise LGTM
I can make a follow up PR to address those. |
Issue #, if available:
#2291
Description of changes:
Python3.6 have reached its EOL, this PR removes support for using serverless-application-model as a library in a python3.6 environment.
Checklist:
make pr
passesExamples?
Please reach out in the comments, if you want to add an example. Examples will be
added to
sam init
through https://github.com/awslabs/aws-sam-cli-app-templates/By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.