Skip to content
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

Merged
merged 1 commit into from
Mar 10, 2022

Conversation

mndeveci
Copy link
Contributor

@mndeveci mndeveci commented Feb 1, 2022

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:

  • Add/update unit tests using:
  • Add/update integration tests
  • make pr passes
  • Update documentation
  • Verify transformed template deploys and application functions as expected

Examples?

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.

@codecov-commenter
Copy link

codecov-commenter commented Feb 1, 2022

Codecov Report

Merging #2311 (33112c8) into develop (e7a1496) will increase coverage by 0.89%.
The diff coverage is 98.20%.

Impacted file tree graph

@@             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     
Impacted Files Coverage Δ
samtranslator/model/api/api_generator.py 94.38% <92.95%> (+0.02%) ⬆️
samtranslator/__init__.py 100.00% <100.00%> (ø)
samtranslator/feature_toggle/dialup.py 100.00% <100.00%> (ø)
samtranslator/feature_toggle/feature_toggle.py 100.00% <100.00%> (+12.16%) ⬆️
samtranslator/intrinsics/actions.py 98.78% <100.00%> (+0.06%) ⬆️
samtranslator/intrinsics/resource_refs.py 95.83% <100.00%> (-0.17%) ⬇️
samtranslator/metrics/method_decorator.py 100.00% <100.00%> (ø)
samtranslator/metrics/metrics.py 100.00% <100.00%> (ø)
samtranslator/model/__init__.py 97.63% <100.00%> (-0.02%) ⬇️
samtranslator/region_configuration.py 77.77% <0.00%> (-22.23%) ⬇️
... and 43 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f292456...33112c8. Read the comment docs.

@jfuss jfuss marked this pull request as ready for review March 3, 2022 13:35
@@ -66,6 +66,7 @@ def read_requirements(req="base.txt"):
"NOTICE",
"THIRD_PARTY_LICENSES",
),
python_requires=">=3.7, <=4.0, !=4.0",
Copy link
Contributor

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?

Copy link
Contributor

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.

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/)

Copy link
Contributor

@torresxb1 torresxb1 left a 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

@jfuss
Copy link
Contributor

jfuss commented Mar 10, 2022

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.

@jfuss jfuss merged commit d796f30 into aws:develop Mar 10, 2022
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.

6 participants