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

Add support for Python3! #296

Merged
merged 7 commits into from
Apr 18, 2017
Merged

Add support for Python3! #296

merged 7 commits into from
Apr 18, 2017

Conversation

jamesls
Copy link
Member

@jamesls jamesls commented Apr 18, 2017

Will automatically set the python runtime based on the python version you're currently running.

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.
@jamesls jamesls requested a review from kyleknap April 18, 2017 20:25
Copy link
Member

@JordonPhillips JordonPhillips left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌 💯 🎉 🐍 ⛵️

Copy link
Contributor

@kyleknap kyleknap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@jamesls jamesls merged commit e718480 into aws:master Apr 18, 2017
@codecov-io
Copy link

Codecov Report

Merging #296 into master will increase coverage by 0.14%.
The diff coverage is 80%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
chalice/package.py 97.05% <ø> (ø) ⬆️
chalice/policy.py 91.78% <0%> (ø) ⬆️
chalice/deploy/packager.py 90.75% <100%> (ø) ⬆️
chalice/utils.py 88.09% <100%> (+0.29%) ⬆️
chalice/deploy/swagger.py 100% <100%> (ø) ⬆️
chalice/awsclient.py 83.87% <100%> (+0.87%) ⬆️
chalice/config.py 96.59% <100%> (+0.16%) ⬆️
chalice/cli/__init__.py 76.34% <66.66%> (+0.25%) ⬆️
chalice/analyzer.py 88.04% <71.42%> (-0.48%) ⬇️
chalice/deploy/deployer.py 80.38% <73.33%> (+1.51%) ⬆️
... and 1 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 0b7ce04...e718480. Read the comment docs.

@kadrach kadrach mentioned this pull request Apr 25, 2017
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.

5 participants