Skip to content

Commit 8dd0eb9

Browse files
committed
Address PR feedback
1 parent 4c404d1 commit 8dd0eb9

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

‎CONTRIBUTING.rst‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,9 @@ First, create a virtual environment for chalice::
6666
$ virtualenv venv
6767
$ source venv/bin/activate
6868

69-
Keep in mind that chalice is designed to work with AWS Lambda,
70-
so you should ensure your virtual environment is created with
71-
python2.7, python3.6, or python3.7, which are the versions of python currently supported by
72-
AWS Lambda.
69+
Keep in mind that chalice is designed to work with AWS Lambda.
70+
Make sure to create your virtual environment using Python 3.9 to 3.12,
71+
as these are versions currently supported by both AWS Lambda and chalice.
7372

7473
Next, you'll need to install chalice. The easiest way to configure this
7574
is to use::

‎chalice/pipeline.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ def __init__(self, app_name, lambda_python_version,
9090
chalice_version_range=None, pipeline_version='v1'):
9191
# type: (str, str, Optional[str], str, Optional[str], str) -> None
9292
self.app_name = app_name
93-
# lambda_python_version is what matches lambda, e.g. 'python3.7'.
93+
# lambda_python_version is what matches lambda, e.g. 'python3.9'.
9494
self.lambda_python_version = lambda_python_version
95-
# py_major_minor is just the version string, e.g. '3.7'
95+
# py_major_minor is just the version string, e.g. '3.9'
9696
self.py_major_minor = self._extract_version(lambda_python_version)
9797
self.codebuild_image = codebuild_image
9898
self.code_source = code_source
@@ -162,7 +162,7 @@ def _validate_python_version(self, python_version):
162162
major, minor = [
163163
int(v) for v in python_version.split('.')
164164
]
165-
if (major, minor) < (3, 7):
165+
if (major, minor) < (3, 9):
166166
raise InvalidCodeBuildPythonVersion(
167167
python_version,
168168
'This CodeBuild image does not support python version: %s' % (

0 commit comments

Comments
 (0)