Skip to content

Commit a77832c

Browse files
feat(runtime): add support for python 3.10 (#2137)
* feat: add support for python 3.10 * fix: add 3.10 to all workflows * fix: workflow version * fix: python version * fix: bump performance SLA * revert: reverting metrics sla values * fix: bump cdk layer version to support Python 3.10 * fix: addressed comments on PR --------- Co-authored-by: Leandro Damascena <[email protected]>
1 parent 365aa7c commit a77832c

16 files changed

+186
-171
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ body:
5858
attributes:
5959
label: AWS Lambda function runtime
6060
options:
61-
- 3.6
6261
- 3.7
6362
- 3.8
6463
- 3.9
64+
- 3.10
6565
validations:
6666
required: true
6767
- type: dropdown

.github/ISSUE_TEMPLATE/static_typing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ body:
2525
attributes:
2626
label: AWS Lambda function runtime
2727
options:
28-
- 3.6
2928
- 3.7
3029
- 3.8
3130
- 3.9
31+
- 3.10
3232
validations:
3333
required: true
3434
- type: input

.github/workflows/publish_v2_layer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
- name: Setup python
5151
uses: actions/setup-python@v4
5252
with:
53-
python-version: "3.9"
53+
python-version: "3.10"
5454
cache: "pip"
5555
- name: Resolve and install project dependencies
5656
# CDK spawns system python when compiling stack

.github/workflows/python_build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ jobs:
2828
strategy:
2929
max-parallel: 4
3030
matrix:
31-
python-version: [3.7, 3.8, 3.9]
31+
python-version: ["3.7", "3.8", "3.9", "3.10"]
3232
env:
33-
PYTHON: ${{ matrix.python-version }}
33+
PYTHON: "${{ matrix.python-version }}"
3434
steps:
3535
- uses: actions/checkout@v3
3636
- name: Install poetry

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
- name: Set up Python
6666
uses: actions/setup-python@v4
6767
with:
68-
python-version: "3.9"
68+
python-version: "3.10"
6969
cache: "poetry"
7070
- name: Set release notes tag
7171
id: release_version

.github/workflows/reusable_deploy_v2_layer_stack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ jobs:
108108
- name: Setup python
109109
uses: actions/setup-python@v4
110110
with:
111-
python-version: "3.9"
111+
python-version: "3.10"
112112
cache: "pip"
113113
- name: Resolve and install project dependencies
114114
# CDK spawns system python when compiling stack

.github/workflows/reusable_publish_docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- name: Set up Python
4242
uses: actions/setup-python@v4
4343
with:
44-
python-version: "3.8"
44+
python-version: "3.10"
4545
cache: "poetry"
4646
- name: Install dependencies
4747
run: make dev

.github/workflows/run-e2e-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
strategy:
3131
fail-fast: false # needed so if a version fails, the others will still be able to complete and cleanup
3232
matrix:
33-
version: ["3.7", "3.8", "3.9"]
33+
version: ["3.7", "3.8", "3.9", "3.10"]
3434
if: ${{ github.actor != 'dependabot[bot]' }}
3535
steps:
3636
- name: "Checkout"

layer/poetry.lock

Lines changed: 27 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

layer/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ name = "aws-lambda-powertools-python-layer"
33
version = "1.1.0"
44
description = "AWS Lambda Powertools for Python Lambda Layers"
55
authors = ["DevAx <[email protected]>"]
6-
license = "MIT"
76

7+
license = "MIT"
88
[tool.poetry.dependencies]
99
python = "^3.9"
10-
cdk-aws-lambda-powertools-layer = "^3.4.0"
10+
cdk-aws-lambda-powertools-layer = "^3.5.0"
1111

1212
[tool.poetry.dev-dependencies]
1313
pytest = "^7.1.2"

package-lock.json

Lines changed: 60 additions & 60 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"name": "aws-lambda-powertools-python-e2e",
33
"version": "1.0.0",
44
"devDependencies": {
5-
"aws-cdk": "^2.74.0"
5+
"aws-cdk": "^2.75.0"
66
}
77
}

0 commit comments

Comments
 (0)