Skip to content

Commit

Permalink
Update to Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
jplock committed Dec 15, 2023
1 parent b14d531 commit 2342b23
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
repos:
- repo: https://github.com/aws-cloudformation/cfn-lint
rev: v0.83.3
rev: v0.83.6
hooks:
- id: cfn-lint-rc
- repo: https://github.com/psf/black
rev: 23.11.0
rev: 23.12.0
hooks:
- id: black
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
},
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
}
4 changes: 2 additions & 2 deletions backend/dependencies/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dynamodb-encryption-sdk==3.2.0
mypy-boto3-dynamodb==1.33.0
mypy-boto3-sqs==1.33.0
mypy-boto3-dynamodb==1.34.0
mypy-boto3-sqs==1.34.0
plaid-python==18.2.0
python-jose[cryptography]==3.3.0
requests==2.31.0
Expand Down
5 changes: 3 additions & 2 deletions backend/requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
wheel==0.42.0
aws-lambda-powertools[all,aws-sdk]==2.29.0
black==23.11.0
aws-lambda-powertools[all,aws-sdk]==2.30.1
black==23.12.0
pre-commit==3.6.0
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.black]
line-length = 100
target-version = ['py311']
target-version = ['py312']
include = '\.pyi?$'
extend-exclude = '''
/(
Expand Down
10 changes: 6 additions & 4 deletions template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ Globals:
TABLE_NAME: !Ref Table
Handler: app.lambda_handler.handler
Layers:
- !Sub "arn:${AWS::Partition}:lambda:${AWS::Region}:017000801446:layer:AWSLambdaPowertoolsPythonV2:48"
- !Sub "arn:${AWS::Partition}:lambda:${AWS::Region}:017000801446:layer:AWSLambdaPowertoolsPythonV2:57"
- !Ref DependencyLayer
LoggingConfig:
LogFormat: JSON
MemorySize: 128 # megabytes
PropagateTags: true
Runtime: python3.11
Runtime: python3.12
Tags:
GITHUB_ORG: !Ref GitHubOrg
GITHUB_REPO: !Ref GitHubRepo
Expand Down Expand Up @@ -288,20 +288,22 @@ Resources:
DependencyLayer:
Type: "AWS::Serverless::LayerVersion"
Metadata:
BuildMethod: python3.11
BuildMethod: python3.12
BuildArchitecture: x86_64
Properties:
LicenseInfo: MIT-0
CompatibleArchitectures:
- x86_64
CompatibleRuntimes:
- python3.11
- python3.12
ContentUri: backend/dependencies
Description: !Sub "Plaid API - ${Environment} - Dependency Layer"
RetentionPolicy: Delete

EncryptionKey:
Type: "AWS::KMS::Key"
UpdateReplacePolicy: Delete
DeletionPolicy: Delete
Properties:
Description: !Sub "Plaid API - ${Environment}"
Enabled: true
Expand Down

0 comments on commit 2342b23

Please sign in to comment.