Skip to content

Commit 65dc3b3

Browse files
authored
[feat] Upgrade to Python 3.13 (#83)
1 parent bcde4d2 commit 65dc3b3

File tree

5 files changed

+17
-11
lines changed

5 files changed

+17
-11
lines changed

api/buildspec.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ version: 0.2
33
phases:
44
install:
55
runtime-versions:
6-
python: 3.12
6+
python: 3.13
7+
commands:
8+
- python3 -m pip install -U aws-sam-cli
79
pre_build:
810
commands:
911
- cd api
@@ -27,5 +29,6 @@ artifacts:
2729
cache:
2830
files:
2931
- '/root/.cache/**/*'
32+
- '/root/.pyenv/**/*'
3033
- '/root/api/.aws-sam/**/*'
3134
- '/root/api/.venv/**/*'

api/template.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,14 +276,14 @@ Resources:
276276
rDependencyLayer:
277277
Type: "AWS::Serverless::LayerVersion"
278278
Metadata:
279-
BuildMethod: python3.12
279+
BuildMethod: python3.13
280280
BuildArchitecture: arm64
281281
Properties:
282282
LicenseInfo: MIT-0
283283
CompatibleArchitectures:
284284
- arm64
285285
CompatibleRuntimes:
286-
- python3.12
286+
- python3.13
287287
ContentUri: dependencies
288288
Description: !Sub "DO NOT DELETE - ${AWS::StackName} - Python Dependencies"
289289
RetentionPolicy: Delete
@@ -391,7 +391,7 @@ Resources:
391391
MemorySize: 1024 # megabytes
392392
PropagateTags: true
393393
Role: !GetAtt rApiFunctionRole.Arn
394-
Runtime: python3.12
394+
Runtime: python3.13
395395
Timeout: 10 # seconds
396396
Tracing: Active
397397
VersionDescription: !Sub "${AWS::StackName} - API"

canary/buildspec.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ version: 0.2
33
phases:
44
install:
55
runtime-versions:
6-
python: 3.12
6+
python: 3.13
7+
commands:
8+
- python3 -m pip install -U aws-sam-cli
79
pre_build:
810
commands:
911
- cd canary
@@ -27,5 +29,6 @@ artifacts:
2729
cache:
2830
files:
2931
- '/root/.cache/**/*'
32+
- '/root/.pyenv/**/*'
3033
- '/root/canary/.aws-sam/**/*'
3134
- '/root/canary/.venv/**/*'

canary/template.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Globals:
5252
MemorySize: 128 # megabytes
5353
PropagateTags: true
5454
ReservedConcurrentExecutions: 1
55-
Runtime: python3.12
55+
Runtime: python3.13
5656
Timeout: 1 # seconds
5757

5858
Mappings:
@@ -297,14 +297,14 @@ Resources:
297297
rDependencyLayer:
298298
Type: "AWS::Serverless::LayerVersion"
299299
Metadata:
300-
BuildMethod: python3.12
300+
BuildMethod: python3.13
301301
BuildArchitecture: arm64
302302
Properties:
303303
LicenseInfo: MIT-0
304304
CompatibleArchitectures:
305305
- arm64
306306
CompatibleRuntimes:
307-
- python3.12
307+
- python3.13
308308
ContentUri: dependencies
309309
Description: !Sub "DO NOT DELETE - ${AWS::StackName} - Python Dependencies"
310310
RetentionPolicy: Delete

ci_template.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,7 @@ Resources:
10381038
Source:
10391039
BuildSpec: buildspec.yml
10401040
Type: CODEPIPELINE
1041-
TimeoutInMinutes: 30
1041+
TimeoutInMinutes: 20
10421042

10431043
rApiCodeBuildProject:
10441044
Type: "AWS::CodeBuild::Project"
@@ -1074,7 +1074,7 @@ Resources:
10741074
Source:
10751075
BuildSpec: api/buildspec.yml
10761076
Type: CODEPIPELINE
1077-
TimeoutInMinutes: 5
1077+
TimeoutInMinutes: 10
10781078

10791079
rCanaryCodeBuildProject:
10801080
Type: "AWS::CodeBuild::Project"
@@ -1110,7 +1110,7 @@ Resources:
11101110
Source:
11111111
BuildSpec: canary/buildspec.yml
11121112
Type: CODEPIPELINE
1113-
TimeoutInMinutes: 5
1113+
TimeoutInMinutes: 10
11141114

11151115
rStepFunctionsRole:
11161116
Type: "AWS::IAM::Role"

0 commit comments

Comments
 (0)