Skip to content

Commit dc18faa

Browse files
author
Ubuntu
committed
Upgrating to python 3.13
1 parent f4eabae commit dc18faa

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

python-test-samples/async-lambda-dynamodb/Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@ clean: ##=> Deletes current build environment and latest build
99
rm -rf ./.aws-sam/ ./venv/
1010

1111
checkOSDependencies:
12-
python3 --version || grep "3.9" || (echo "Error: Requires Python 3.9" && exit 1)
12+
python3 --version | grep "3.13" || (echo "Error: Requires Python 3.13" && exit 1)
1313

1414
all: clean build
1515

1616
install: checkOSDependencies
1717
${PIP} install virtualenv
18-
python3 -m venv venv
18+
python3 -m virtualenv venv
19+
source venv/bin/activate && ${PIP} install pytest boto3 backoff
1920

2021
deps:
2122
source ./venv/bin/activate && ${PIP} install -r tests/integration/requirements.txt

python-test-samples/async-lambda-dynamodb/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The SAM CLI is an extension of the AWS CLI that adds functionality for building
2929
To use the SAM CLI, you need the following tools.
3030

3131
- SAM CLI - [Install the SAM CLI](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install.html)
32-
- Python 3 - [Install Python 3](https://www.python.org/downloads/)
32+
- Python 3.13 - [Install Python 3.13](https://www.python.org/downloads/)
3333
- Docker - [Install Docker community edition](https://hub.docker.com/search/?type=edition&offering=community)
3434

3535
This project uses the `make` build automation tool to provide convenient commands for building, deploying and testing this sample application. To view the available commands make sure this utility is installed and run the `make` command in the terminal from the same directory as the `Makefile`.
@@ -72,3 +72,4 @@ Run these four commands in sequence.
7272
- `exit` - Close the virtual environment shell
7373

7474
[[top]](#asynchronous-integration-test-with-lambda-event-listener-and-dynamodb)
75+

python-test-samples/async-lambda-dynamodb/template.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ Globals: # https://docs.aws.amazon.com/serverless-application-model/latest/devel
2020
Function:
2121
Timeout: 15
2222
MemorySize: 256
23-
Runtime: python3.9
23+
Runtime: python3.13
2424
Tracing: Active # https://docs.aws.amazon.com/lambda/latest/dg/lambda-x-ray.html
2525
# Embed Lambda Powertools as a shared Layer
2626
# See: https://awslabs.github.io/aws-lambda-powertools-python/latest/#lambda-layer
2727
Layers: #
28-
- !Sub arn:aws:lambda:${AWS::Region}:017000801446:layer:AWSLambdaPowertoolsPython:9
28+
- !Sub arn:aws:lambda:${AWS::Region}:017000801446:layer:AWSLambdaPowertoolsPython:76
2929
Environment:
3030
Variables:
3131
DESTINATION_BUCKET:
@@ -162,4 +162,3 @@ Outputs:
162162
Value: !Ref AsyncTransformTestResultsTable
163163

164164

165-

0 commit comments

Comments
 (0)