Skip to content

Commit 365c853

Browse files
ran-isenbergRan Isenberg
andauthored
feature: support python 3.14 (#992)
--------- Co-authored-by: Ran Isenberg <ran.isenberg@ranthebuilder.cloud>
1 parent 6be5616 commit 365c853

File tree

11 files changed

+541
-537
lines changed

11 files changed

+541
-537
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ permissions:
66
contents: read
77

88
env:
9-
NODE_VERSION: "20"
10-
PYTHON_VERSION: "3.13"
9+
NODE_VERSION: "22"
10+
PYTHON_VERSION: "3.14"
1111
AWS_REGION: "us-east-1"
1212

1313
on:

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ permissions:
66
contents: read
77

88
env:
9-
NODE_VERSION: "20"
10-
PYTHON_VERSION: "3.13"
9+
NODE_VERSION: "22"
10+
PYTHON_VERSION: "3.14"
1111
AWS_REGION: "us-east-1"
1212

1313
on:

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
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.14.3
29+
rev: v0.14.6
3030
hooks:
3131
# Run the Ruff linter.
3232
- id: ruff

README.md

Lines changed: 2 additions & 2 deletions
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.13&color=blue?style=flat-square&logo=python)
4+
![PythonSupport](https://img.shields.io/static/v1?label=python&message=3.14&color=blue?style=flat-square&logo=python)
55
[![codecov](https://codecov.io/github/ran-isenberg/aws-lambda-handler-cookbook/graph/badge.svg?token=P2K7K4KICF)](https://codecov.io/github/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)
@@ -10,7 +10,7 @@
1010

1111
![alt text](https://github.com/ran-isenberg/aws-lambda-handler-cookbook/blob/main/docs/media/banner.png?raw=true)
1212

13-
This project provides a working, open source based, AWS Lambda handler skeleton Python code including DEPLOYMENT code with CDK and a pipeline.
13+
This project provides a working, open source based, AWS Lambda handler skeleton Python code includingx DEPLOYMENT code with CDK and a pipeline.
1414

1515
This project can serve as a blueprint for new Serverless services - CDK deployment code, pipeline and handler are covered.
1616

cdk/service/api_construct.py

Lines changed: 2 additions & 2 deletions
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_13],
105+
compatible_runtimes=[_lambda.Runtime.PYTHON_3_14],
106106
removal_policy=RemovalPolicy.DESTROY,
107107
description='Common layer for the service',
108108
compatible_architectures=[_lambda.Architecture.X86_64],
@@ -119,7 +119,7 @@ def _add_post_lambda_integration(
119119
lambda_function = _lambda.Function(
120120
self,
121121
constants.CREATE_LAMBDA,
122-
runtime=_lambda.Runtime.PYTHON_3_13,
122+
runtime=_lambda.Runtime.PYTHON_3_14,
123123
code=_lambda.Code.from_asset(constants.BUILD_FOLDER),
124124
handler='service.handlers.handle_create_order.lambda_handler',
125125
environment={

docs/examples/best_practices/dynamic_configuration/lambda_cdk.py

Lines changed: 1 addition & 1 deletion
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_13,
38+
runtime=_lambda.Runtime.PYTHON_3_14,
3939
code=_lambda.Code.from_asset(constants.BUILD_FOLDER),
4040
handler='service.handlers.create_order.create_order',
4141
environment={

docs/getting_started.md

Lines changed: 1 addition & 1 deletion
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.13
9+
* Python 3.14
1010
* [poetry](https://pypi.org/project/poetry/){target="_blank"} - Make sure to have poetry v2 and above and 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

Lines changed: 4 additions & 4 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
@@ -1,5 +1,5 @@
11
{
22
"dependencies": {
3-
"aws-cdk": "2.1031.1"
3+
"aws-cdk": "2.1033.0"
44
}
55
}

0 commit comments

Comments
 (0)