Skip to content

Commit a175b4f

Browse files
authored
Merge pull request #2137 from jonathan343/3.13
Add support for Python 3.13
2 parents 2d423df + 118eb85 commit a175b4f

File tree

13 files changed

+37
-26
lines changed

13 files changed

+37
-26
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"type": "feature",
3+
"category": "Python",
4+
"description": "Add support for Python 3.13 (#2137)"
5+
}

.github/workflows/run-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
matrix:
1919
os: [ubuntu-latest, macos-latest]
20-
python-version: [3.9, '3.10', 3.11, 3.12]
20+
python-version: [3.9, '3.10', 3.11, 3.12, 3.13]
2121
steps:
2222
- uses: actions/checkout@v2
2323
- uses: actions/setup-python@v2
@@ -33,7 +33,7 @@ jobs:
3333
runs-on: ubuntu-latest
3434
strategy:
3535
matrix:
36-
python-version: [3.9, '3.10', 3.11, 3.12]
36+
python-version: [3.9, '3.10', 3.11, 3.12, 3.13]
3737
steps:
3838
- uses: actions/checkout@v2
3939
- uses: actions/setup-node@v2

.pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ confidence=
5151
# --enable=similarities". If you want to run only the classes checker, but have
5252
# no Warning level messages displayed, use"--disable=all --enable=classes
5353
# --disable=W"
54-
disable=W0613,I0021,I0020,C0111,R0902,R0903,W0231,W0611,R0913,W0703,I0011,R0904,R0205,R1705,R1710,C0415,R1725,W0707,R1732,W1512,C0209,W1514,C0412,C0411,R1735
54+
disable=W0613,I0021,I0020,C0111,R0902,R0903,W0231,W0611,R0913,W0703,I0011,R0904,R0205,R1705,R1710,C0415,R1725,W0707,R1732,W1512,C0209,W1514,C0412,C0411,R1735,R0917
5555

5656

5757
[REPORTS]

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Quickstart
111111
In this tutorial, you'll use the ``chalice`` command line utility
112112
to create and deploy a basic REST API. This quickstart uses Python 3.9,
113113
but AWS Chalice supports all versions of python supported by AWS Lambda,
114-
which includes Python 3.9 through python 3.12.
114+
which includes Python 3.9 through python 3.13.
115115

116116
To install Chalice, we'll first create and activate a virtual environment
117117
in python3.9::

chalice/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,11 @@ def lambda_python_version(self) -> str:
150150
major, minor = sys.version_info[0], sys.version_info[1]
151151
if (major, minor) < (3, 9):
152152
return 'python3.9'
153-
elif (major, minor) <= (3, 11):
153+
elif (major, minor) <= (3, 12):
154154
# Otherwise we use your current version of python if Lambda
155155
# supports it.
156156
return f'python{major}.{minor}'
157-
return 'python3.12'
157+
return 'python3.13'
158158

159159
@property
160160
def log_retention_in_days(self) -> int:

chalice/deploy/packager.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ class BaseLambdaDeploymentPackager(object):
8080
'python3.10': 'cp310',
8181
'python3.11': 'cp311',
8282
'python3.12': 'cp312',
83+
'python3.13': 'cp313',
8384
}
8485

8586
def __init__(
@@ -497,7 +498,8 @@ class DependencyBuilder(object):
497498
'cp38': (2, 26),
498499
'cp310': (2, 26),
499500
'cp311': (2, 26),
500-
'cp312': (2, 26),
501+
'cp312': (2, 34),
502+
'cp313': (2, 34),
501503
}
502504
# Fallback version if we're on an unknown python version
503505
# not in _RUNTIME_GLIBC.

requirements-dev.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ pygments
1111
types-six
1212
types-python-dateutil
1313
types-PyYAML
14+
standard-imghdr

requirements-dev.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#
77
alabaster==0.7.13
88
# via sphinx
9-
astroid==3.2.4
9+
astroid==3.3.10
1010
# via pylint
1111
attrs==24.2.0
1212
# via hypothesis
@@ -89,7 +89,7 @@ pygments==2.18.0
8989
# -r requirements-dev.in
9090
# doc8
9191
# sphinx
92-
pylint==3.2.7
92+
pylint==3.3.7
9393
# via -r requirements-dev.in
9494
pytest==8.3.3
9595
# via
@@ -129,6 +129,8 @@ sphinxcontrib-qthelp==1.0.3
129129
# via sphinx
130130
sphinxcontrib-serializinghtml==1.1.5
131131
# via sphinx
132+
standard-imghdr==3.13.0
133+
# via -r requirements-dev.in
132134
stevedore==5.3.0
133135
# via doc8
134136
tomli==2.1.0

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,6 @@ def recursive_include(relative_dir):
7272
'Programming Language :: Python :: 3.10',
7373
'Programming Language :: Python :: 3.11',
7474
'Programming Language :: Python :: 3.12',
75+
'Programming Language :: Python :: 3.13',
7576
],
7677
)

tests/aws/testapp/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
boto3==1.9.91
1+
boto3==1.38.15

0 commit comments

Comments
 (0)