-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Add support for Python3! #296
Conversation
This commit just makes the chalice codebase run on python3. There's no integration yet with creating python3 functions on lambda in this commit. Pylint doesn't officially support python3.6 yet, so I had to lock to a commit in their master branch for the time being. Once they support py36 in an official release I can update the requirements-dev.txt file. Passes all the tests/linters on python3.6.
This will update the python runtime on both the initial deploy as well as subsequent deploys.
This adds an api call for getting function configuration and updates the lambda deployer to use this new api call to check if the python runtime is about to change. If it is, it will prompt you for confirmation.
Right now this is a soft warning, but we may eventually make this a hard fail. Validation happens in two spots: * When running "chalice deploy" * When creating a new-project The `warnings` module is being used because I'm considering making this a hard fail, in which case I would update this to be a DeprecationWarning before actually removing this functionality.
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 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.
🚢
Codecov Report
@@ Coverage Diff @@
## master #296 +/- ##
==========================================
+ Coverage 87.17% 87.32% +0.14%
==========================================
Files 19 19
Lines 1778 1814 +36
Branches 207 211 +4
==========================================
+ Hits 1550 1584 +34
- Misses 176 178 +2
Partials 52 52
Continue to review full report at Codecov.
|
Will automatically set the python runtime based on the python version you're currently running.