Skip to content

Commit

Permalink
[feat] Upgrade to Python 3.13 (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
jplock authored Jan 3, 2025
1 parent bcde4d2 commit 65dc3b3
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 11 deletions.
5 changes: 4 additions & 1 deletion api/buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ version: 0.2
phases:
install:
runtime-versions:
python: 3.12
python: 3.13
commands:
- python3 -m pip install -U aws-sam-cli
pre_build:
commands:
- cd api
Expand All @@ -27,5 +29,6 @@ artifacts:
cache:
files:
- '/root/.cache/**/*'
- '/root/.pyenv/**/*'
- '/root/api/.aws-sam/**/*'
- '/root/api/.venv/**/*'
6 changes: 3 additions & 3 deletions api/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -276,14 +276,14 @@ Resources:
rDependencyLayer:
Type: "AWS::Serverless::LayerVersion"
Metadata:
BuildMethod: python3.12
BuildMethod: python3.13
BuildArchitecture: arm64
Properties:
LicenseInfo: MIT-0
CompatibleArchitectures:
- arm64
CompatibleRuntimes:
- python3.12
- python3.13
ContentUri: dependencies
Description: !Sub "DO NOT DELETE - ${AWS::StackName} - Python Dependencies"
RetentionPolicy: Delete
Expand Down Expand Up @@ -391,7 +391,7 @@ Resources:
MemorySize: 1024 # megabytes
PropagateTags: true
Role: !GetAtt rApiFunctionRole.Arn
Runtime: python3.12
Runtime: python3.13
Timeout: 10 # seconds
Tracing: Active
VersionDescription: !Sub "${AWS::StackName} - API"
Expand Down
5 changes: 4 additions & 1 deletion canary/buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ version: 0.2
phases:
install:
runtime-versions:
python: 3.12
python: 3.13
commands:
- python3 -m pip install -U aws-sam-cli
pre_build:
commands:
- cd canary
Expand All @@ -27,5 +29,6 @@ artifacts:
cache:
files:
- '/root/.cache/**/*'
- '/root/.pyenv/**/*'
- '/root/canary/.aws-sam/**/*'
- '/root/canary/.venv/**/*'
6 changes: 3 additions & 3 deletions canary/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Globals:
MemorySize: 128 # megabytes
PropagateTags: true
ReservedConcurrentExecutions: 1
Runtime: python3.12
Runtime: python3.13
Timeout: 1 # seconds

Mappings:
Expand Down Expand Up @@ -297,14 +297,14 @@ Resources:
rDependencyLayer:
Type: "AWS::Serverless::LayerVersion"
Metadata:
BuildMethod: python3.12
BuildMethod: python3.13
BuildArchitecture: arm64
Properties:
LicenseInfo: MIT-0
CompatibleArchitectures:
- arm64
CompatibleRuntimes:
- python3.12
- python3.13
ContentUri: dependencies
Description: !Sub "DO NOT DELETE - ${AWS::StackName} - Python Dependencies"
RetentionPolicy: Delete
Expand Down
6 changes: 3 additions & 3 deletions ci_template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,7 @@ Resources:
Source:
BuildSpec: buildspec.yml
Type: CODEPIPELINE
TimeoutInMinutes: 30
TimeoutInMinutes: 20

rApiCodeBuildProject:
Type: "AWS::CodeBuild::Project"
Expand Down Expand Up @@ -1074,7 +1074,7 @@ Resources:
Source:
BuildSpec: api/buildspec.yml
Type: CODEPIPELINE
TimeoutInMinutes: 5
TimeoutInMinutes: 10

rCanaryCodeBuildProject:
Type: "AWS::CodeBuild::Project"
Expand Down Expand Up @@ -1110,7 +1110,7 @@ Resources:
Source:
BuildSpec: canary/buildspec.yml
Type: CODEPIPELINE
TimeoutInMinutes: 5
TimeoutInMinutes: 10

rStepFunctionsRole:
Type: "AWS::IAM::Role"
Expand Down

0 comments on commit 65dc3b3

Please sign in to comment.