Skip to content

Commit dfb9892

Browse files
feat(general): add support for Python 3.11 (#2820)
* feat: add support for Python 3.11 * fix: remove python-snappY * fastjsonschema: test change due to behavior change in fastjsonschem * LRU: test * Removing snappy since it doesnt offer to Python3.11 * Adding support to Python3.11 in the layer for test * Skipping test * Skipping test for Python 3.11+ --------- Co-authored-by: Leandro Damascena <[email protected]>
1 parent ec62084 commit dfb9892

24 files changed

+406
-450
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ body:
6262
- "3.8"
6363
- "3.9"
6464
- "3.10"
65+
- "3.11"
6566
validations:
6667
required: true
6768
- type: dropdown

.github/ISSUE_TEMPLATE/static_typing.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ body:
2929
- "3.8"
3030
- "3.9"
3131
- "3.10"
32+
- "3.11"
3233
validations:
3334
required: true
3435
- type: input

.github/workflows/publish_v2_layer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ jobs:
107107
- name: Setup python
108108
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0
109109
with:
110-
python-version: "3.10"
110+
python-version: "3.11"
111111
cache: "pip"
112112
- name: Resolve and install project dependencies
113113
# CDK spawns system python when compiling stack

.github/workflows/quality_check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
strategy:
4545
max-parallel: 4
4646
matrix:
47-
python-version: ["3.7", "3.8", "3.9", "3.10"]
47+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
4848
env:
4949
PYTHON: "${{ matrix.python-version }}"
5050
permissions:

.github/workflows/quality_check_pydanticv2.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
strategy:
4545
max-parallel: 4
4646
matrix:
47-
python-version: ["3.7", "3.8", "3.9", "3.10"]
47+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
4848
env:
4949
PYTHON: "${{ matrix.python-version }}"
5050
permissions:

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ jobs:
133133
- name: Set up Python
134134
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0
135135
with:
136-
python-version: "3.10"
136+
python-version: "3.11"
137137
cache: "poetry"
138138
- name: Install dependencies
139139
run: make dev
@@ -171,7 +171,7 @@ jobs:
171171
- name: Set up Python
172172
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0
173173
with:
174-
python-version: "3.10"
174+
python-version: "3.11"
175175
cache: "poetry"
176176

177177
- name: Build python package and wheel

.github/workflows/reusable_deploy_v2_layer_stack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ jobs:
160160
- name: Setup python
161161
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0
162162
with:
163-
python-version: "3.10"
163+
python-version: "3.11"
164164
cache: "pip"
165165
- name: Resolve and install project dependencies
166166
# 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
@@ -52,7 +52,7 @@ jobs:
5252
- name: Set up Python
5353
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0
5454
with:
55-
python-version: "3.10"
55+
python-version: "3.11"
5656
cache: "poetry"
5757
- name: Install dependencies
5858
run: make dev

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
strategy:
4848
fail-fast: false # needed so if a version fails, the others will still be able to complete and cleanup
4949
matrix:
50-
version: ["3.7", "3.8", "3.9", "3.10"]
50+
version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
5151
if: ${{ github.actor != 'dependabot[bot]' }}
5252
steps:
5353
- name: "Checkout"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
[![Build](https://github.com/aws-powertools/powertools-lambda-python/actions/workflows/quality_check.yml/badge.svg)](https://github.com/aws-powertools/powertools-lambda-python/actions/workflows/python_build.yml)
55
[![codecov.io](https://codecov.io/github/aws-powertools/powertools-lambda-python/branch/develop/graphs/badge.svg)](https://app.codecov.io/gh/aws-powertools/powertools-lambda-python)
6-
![PythonSupport](https://img.shields.io/static/v1?label=python&message=%203.7|%203.8|%203.9|%203.10&color=blue?style=flat-square&logo=python) ![PyPI version](https://badge.fury.io/py/aws-lambda-powertools.svg) ![PyPi monthly downloads](https://img.shields.io/pypi/dm/aws-lambda-powertools) [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/aws-powertools/powertools-lambda-python/badge)](https://api.securityscorecards.dev/projects/github.com/aws-powertools/powertools-lambda-python) [![Join our Discord](https://dcbadge.vercel.app/api/server/B8zZKbbyET)](https://discord.gg/B8zZKbbyET)
6+
![PythonSupport](https://img.shields.io/static/v1?label=python&message=%203.7|%203.8|%203.9|%203.10|%203.11&color=blue?style=flat-square&logo=python) ![PyPI version](https://badge.fury.io/py/aws-lambda-powertools.svg) ![PyPi monthly downloads](https://img.shields.io/pypi/dm/aws-lambda-powertools) [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/aws-powertools/powertools-lambda-python/badge)](https://api.securityscorecards.dev/projects/github.com/aws-powertools/powertools-lambda-python) [![Join our Discord](https://dcbadge.vercel.app/api/server/B8zZKbbyET)](https://discord.gg/B8zZKbbyET)
77

88
Powertools for AWS Lambda (Python) is a developer toolkit to implement Serverless [best practices and increase developer velocity](https://docs.powertools.aws.dev/lambda/python/latest/#features).
99

0 commit comments

Comments
 (0)