Skip to content

Commit 82ac1ca

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

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

python-test-samples/apigw-sqs-lambda-sqs/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![python: 3.9](https://img.shields.io/badge/Python-3.9-green)](https://img.shields.io/badge/Python-3.9-green)
1+
[![python: 3.13](https://img.shields.io/badge/Python-3.13-green)](https://img.shields.io/badge/Python-3.13-green)
22
[![AWS: SQS](https://img.shields.io/badge/AWS-SQS-blueviolet)](https://img.shields.io/badge/AWS-SQS-blueviolet)
33
[![test: integration](https://img.shields.io/badge/Test-Integration-yellow)](https://img.shields.io/badge/Test-Integration-yellow)
44

@@ -60,9 +60,9 @@ The SAM CLI extends the AWS CLI that adds functionality for building and testing
6060
To use the SAM CLI, you need the following tools.
6161

6262
* SAM CLI - [Install the SAM CLI](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install.html)
63-
* Python 3.9 and above - [Install Python 3.9](https://www.python.org/downloads/)
63+
* Python 3.13 and above - [Install Python 3.13](https://www.python.org/downloads/)
6464

65-
In case you are using AWS cloud9, currently the default Python version is 3.7. you can check [here](https://repost.aws/questions/QU14iutbqtSsm1gHwQwt02pA/upgrade-to-python-3-9-on-cloud-9) how to update it.
65+
In case you are using AWS cloud9, you may need to upgrade to Python 3.13. You can check [here](https://repost.aws/questions/QU14iutbqtSsm1gHwQwt02pA/upgrade-to-python-3-9-on-cloud-9) for guidance on upgrading Python versions.
6666

6767

6868

@@ -112,10 +112,10 @@ To run the integration test, create the environment variable "AWS_SAM_STACK_NAME
112112
export AWS_SAM_STACK_NAME=<stack-name>
113113
export AWS_DEFAULT_REGION=<region-of-test>
114114
pip3 install virtualenv
115-
python3 -m venv venv
115+
python3 -m virtualenv venv
116116
source venv/bin/activate
117117
pip3 install -r tests/requirements.txt
118-
python3 -m pytest -s tests/integration -v
118+
python3 -m pytest -s tests/integration -v
119119

120120
# For INFO debug log you can run: python -m pytest -s tests/integration --log-cli-level=20
121121
```

python-test-samples/apigw-sqs-lambda-sqs/template.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Resources:
102102
- AmazonSQSFullAccess
103103
CodeUri: src/process-input-queue
104104
Handler: process_input_queue.lambda_handler
105-
Runtime: python3.9
105+
Runtime: python3.13 # Changed from python3.9
106106
Environment:
107107
Variables:
108108
OUTPUT_QUEUE_NAME: !Ref OutputQueue
@@ -120,7 +120,7 @@ Resources:
120120
Properties:
121121
CodeUri: src/write-test-result
122122
Handler: write_test_result.lambda_handler
123-
Runtime: python3.9
123+
Runtime: python3.13 # Changed from python3.9
124124
MemorySize: 128
125125
Timeout: 5
126126
Tracing: Active
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
pytest
2-
boto3
1+
pytest>=7.0.0
2+
boto3>=1.26.0
33
moto
44
uuid
5-
requests
5+
requests>=2.28.0

0 commit comments

Comments
 (0)