Skip to content

Commit e0485e0

Browse files
ran-isenbergRan Isenberg
and
Ran Isenberg
authored
feature: add Python 3.13 support (#898)
Co-authored-by: Ran Isenberg <[email protected]>
1 parent b6495db commit e0485e0

File tree

12 files changed

+295
-296
lines changed

12 files changed

+295
-296
lines changed

.github/workflows/main-serverless-service.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ permissions:
77

88
env:
99
NODE_VERSION: "20"
10-
PYTHON_VERSION: "3.12"
10+
PYTHON_VERSION: "3.13"
1111
AWS_REGION: "us-east-1"
1212

1313
on:

.github/workflows/pr-serverless-service.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ permissions:
77

88
env:
99
NODE_VERSION: "20"
10-
PYTHON_VERSION: "3.12"
10+
PYTHON_VERSION: "3.13"
1111
AWS_REGION: "us-east-1"
1212

1313
on:

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ repos:
2626
exclude: "^(?!helpers/)"
2727
- repo: https://github.com/astral-sh/ruff-pre-commit
2828
# Ruff version.
29-
rev: v0.7.1
29+
rev: v0.7.3
3030
hooks:
3131
# Run the Ruff linter.
3232
- id: ruff

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# AWS Lambda Handler Cookbook (Python)
22

33
[![license](https://img.shields.io/github/license/ran-isenberg/aws-lambda-handler-cookbook)](https://github.com/ran-isenberg/aws-lambda-handler-cookbook/blob/master/LICENSE)
4-
![PythonSupport](https://img.shields.io/static/v1?label=python&message=3.12&color=blue?style=flat-square&logo=python)
4+
![PythonSupport](https://img.shields.io/static/v1?label=python&message=3.13&color=blue?style=flat-square&logo=python)
55
[![codecov](https://codecov.io/gh/ran-isenberg/aws-lambda-handler-cookbook/branch/main/graph/badge.svg?token=P2K7K4KICF)](https://codecov.io/gh/ran-isenberg/aws-lambda-handler-cookbook)
66
![version](https://img.shields.io/github/v/release/ran-isenberg/aws-lambda-handler-cookbook)
77
![github-star-badge](https://img.shields.io/github/stars/ran-isenberg/aws-lambda-handler-cookbook.svg?style=social)

cdk/service/api_construct.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def _build_common_layer(self) -> PythonLayerVersion:
102102
self,
103103
f'{self.id_}{constants.LAMBDA_LAYER_NAME}',
104104
entry=constants.COMMON_LAYER_BUILD_FOLDER,
105-
compatible_runtimes=[_lambda.Runtime.PYTHON_3_12],
105+
compatible_runtimes=[_lambda.Runtime.PYTHON_3_13],
106106
removal_policy=RemovalPolicy.DESTROY,
107107
)
108108

@@ -117,7 +117,7 @@ def _add_post_lambda_integration(
117117
lambda_function = _lambda.Function(
118118
self,
119119
constants.CREATE_LAMBDA,
120-
runtime=_lambda.Runtime.PYTHON_3_12,
120+
runtime=_lambda.Runtime.PYTHON_3_13,
121121
code=_lambda.Code.from_asset(constants.BUILD_FOLDER),
122122
handler='service.handlers.handle_create_order.lambda_handler',
123123
environment={

cdk/setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
classifiers=[
1313
'Intended Audience :: Developers',
1414
'Topic :: Software Development :: Build Tools',
15-
'Programming Language :: Python :: 3.12',
15+
'Programming Language :: Python :: 3.13',
1616
],
1717
url='https://github.com/ran-isenberg/aws-lambda-handler-cookbook',
1818
author='Ran Isenberg',
1919
author_email='[email protected]',
2020
packages=find_packages(exclude=['contrib', 'docs', 'tests']),
2121
package_data={'': ['*.json']},
2222
include_package_data=True,
23-
python_requires='>=3.12',
23+
python_requires='>=3.13',
2424
install_requires=[],
2525
)

docs/examples/best_practices/dynamic_configuration/lambda_cdk.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def _build_lambda_function(self, role: iam.Role, db: dynamodb.Table, appconfig_a
3535
return _lambda.Function(
3636
self,
3737
'ServicePost',
38-
runtime=_lambda.Runtime.PYTHON_3_12,
38+
runtime=_lambda.Runtime.PYTHON_3_13,
3939
code=_lambda.Code.from_asset(constants.BUILD_FOLDER),
4040
handler='service.handlers.create_order.create_order',
4141
environment={

docs/getting_started.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: AWS Lambda Cookbook Project Getting started
66

77
* **Docker** - install [Docker](https://www.docker.com/){target="_blank"}. Required for the Lambda layer packaging process.
88
* **[AWS CDK](cdk.md)** - Required for synth & deploying the AWS Cloudformation stack. Run CDK [Bootstrap](https://docs.aws.amazon.com/cdk/v2/guide/bootstrapping.html) on your AWS account and region.
9-
* Python 3.12
9+
* Python 3.13
1010
* [poetry](https://pypi.org/project/poetry/){target="_blank"} - Make sure to run ``poetry config --local virtualenvs.in-project true`` so all dependencies are installed in the project '.venv' folder.
1111
* For Windows based machines, use the Makefile_windows version (rename to Makefile). Default Makefile is for Mac/Linux.
1212

package-lock.json

+6-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"dependencies": {
3-
"aws-cdk": "2.164.1"
3+
"aws-cdk": "2.167.0"
44
}
55
}

0 commit comments

Comments
 (0)