Skip to content

Commit c541dfa

Browse files
Initial commit for Python 3.13
1 parent e8d4859 commit c541dfa

File tree

19 files changed

+421
-327
lines changed

19 files changed

+421
-327
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ body:
6363
- "3.10"
6464
- "3.11"
6565
- "3.12"
66+
- "3.13"
6667
validations:
6768
required: true
6869
- type: dropdown

.github/ISSUE_TEMPLATE/static_typing.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ body:
3030
- "3.10"
3131
- "3.11"
3232
- "3.12"
33+
- "3.13"
3334
validations:
3435
required: true
3536
- type: input

.github/workflows/publish_v3_layer.yml

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
strategy:
8686
max-parallel: 5
8787
matrix:
88-
python-version: ["3.8","3.9","3.10","3.11","3.12"]
88+
python-version: ["3.8","3.9","3.10","3.11","3.12","3.13"]
8989
defaults:
9090
run:
9191
working-directory: ./layer_v3
@@ -232,28 +232,29 @@ jobs:
232232
# where a new release creates a new doc (2.16.0) while layers are still pointing to 2.15
233233
# because the PR has to be merged while release process is running
234234

235-
update_v3_layer_arn_docs:
236-
needs: prod
237-
outputs:
238-
temp_branch: ${{ steps.create-pr.outputs.temp_branch }}
239-
runs-on: ubuntu-latest
240-
permissions:
241-
# lower privilege propagated from parent workflow (release.yml)
242-
contents: write
243-
pull-requests: write
244-
id-token: none
245-
pages: none
246-
steps:
247-
- name: Checkout repository # reusable workflows start clean, so we need to checkout again
248-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
249-
with:
250-
ref: ${{ env.RELEASE_COMMIT }}
235+
# UNCOMMENT LEO
236+
# update_v3_layer_arn_docs:
237+
# needs: prod
238+
# outputs:
239+
# temp_branch: ${{ steps.create-pr.outputs.temp_branch }}
240+
# runs-on: ubuntu-latest
241+
# permissions:
242+
# # lower privilege propagated from parent workflow (release.yml)
243+
# contents: write
244+
# pull-requests: write
245+
# id-token: none
246+
# pages: none
247+
# steps:
248+
# - name: Checkout repository # reusable workflows start clean, so we need to checkout again
249+
# uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
250+
# with:
251+
# ref: ${{ env.RELEASE_COMMIT }}
251252

252-
- name: Restore sealed source code
253-
uses: ./.github/actions/seal-restore
254-
with:
255-
integrity_hash: ${{ inputs.source_code_integrity_hash }}
256-
artifact_name: ${{ inputs.source_code_artifact_name }}
253+
# - name: Restore sealed source code
254+
# uses: ./.github/actions/seal-restore
255+
# with:
256+
# integrity_hash: ${{ inputs.source_code_integrity_hash }}
257+
# artifact_name: ${{ inputs.source_code_artifact_name }}
257258

258259
# UNCOMMENT THIS
259260
# - name: Download CDK layer artifacts

.github/workflows/quality_check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
strategy:
4949
max-parallel: 4
5050
matrix:
51-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
51+
python-version: ["3.8","3.9","3.10","3.11","3.12","3.13"]
5252
env:
5353
PYTHON: "${{ matrix.python-version }}"
5454
permissions:

.github/workflows/reusable_deploy_v3_layer_stack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
"eu-north-1", "eu-south-1", "eu-south-2", "eu-west-1", "eu-west-2", "eu-west-3",
7979
"il-central-1", "me-central-1", "me-south-1", "sa-east-1", "us-east-1",
8080
"us-east-2", "us-west-1", "us-west-2"]
81-
python-version: ["3.8","3.9","3.10","3.11","3.12"]
81+
python-version: ["3.8","3.9","3.10","3.11","3.12","3.13"]
8282
include:
8383
- region: "af-south-1"
8484
has_arm64_support: "true"

.github/workflows/reusable_deploy_v3_sar.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
strategy:
7373
matrix:
7474
architecture: ["x86_64", "arm64"]
75-
python-version: ["3.8","3.9","3.10","3.11","3.12"]
75+
python-version: ["3.8","3.9","3.10","3.11","3.12","3.13"]
7676
steps:
7777
- name: checkout
7878
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

.github/workflows/run-e2e-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
strategy:
4949
fail-fast: false # needed so if a version fails, the others will still be able to complete and cleanup
5050
matrix:
51-
version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
51+
version: ["3.8", "3.9", "3.10", "3.11", "3.12","3.13"]
5252
if: ${{ github.actor != 'dependabot[bot]' && github.repository == 'aws-powertools/powertools-lambda-python' }}
5353
steps:
5454
- name: "Checkout"

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ target:
66

77
dev:
88
pip install --upgrade pip pre-commit poetry
9-
poetry config --local virtualenvs.in-project true
109
@$(MAKE) dev-version-plugin
1110
poetry install --extras "all redis datamasking"
1211
pre-commit install

aws_lambda_powertools/utilities/parser/models/cloudformation_custom_resource.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ class CloudFormationCustomResourceBaseModel(BaseModel):
1414
resource_properties: Union[Dict[str, Any], BaseModel, None] = Field(None, alias="ResourceProperties")
1515

1616

17-
class CloudFormationCustomResourceCreateModel(CloudFormationCustomResourceBaseModel):
17+
class CloudFormationCustomResourceCreateModel(CloudFormationCustomResourceBaseModel): # type: ignore[override]
1818
request_type: Literal["Create"] = Field(..., alias="RequestType")
1919

2020

21-
class CloudFormationCustomResourceDeleteModel(CloudFormationCustomResourceBaseModel):
21+
class CloudFormationCustomResourceDeleteModel(CloudFormationCustomResourceBaseModel): # type: ignore[override]
2222
request_type: Literal["Delete"] = Field(..., alias="RequestType")
2323
physical_resource_id: str = Field(..., alias="PhysicalResourceId")
2424

2525

26-
class CloudFormationCustomResourceUpdateModel(CloudFormationCustomResourceBaseModel):
26+
class CloudFormationCustomResourceUpdateModel(CloudFormationCustomResourceBaseModel): # type: ignore[override]
2727
request_type: Literal["Update"] = Field(..., alias="RequestType")
2828
physical_resource_id: str = Field(..., alias="PhysicalResourceId")
2929
old_resource_properties: Union[Dict[str, Any], BaseModel, None] = Field(None, alias="OldResourceProperties")

docs/automation.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ This is a snapshot of our automated checks at a glance.
9494
To build and deploy the Lambda Layers, we run a pipeline with the following steps:
9595

9696
* We fetch the latest PyPi release and use it as the source for our layer.
97-
* We build Python versions ranging from **3.8 to 3.12** for x86_64 and arm64 architectures. This is necessary because we use pre-compiled libraries like **Pydantic** and **Cryptography**, which require specific Python versions for each layer.
97+
* We build Python versions ranging from **3.8 to 3.13** for x86_64 and arm64 architectures. This is necessary because we use pre-compiled libraries like **Pydantic** and **Cryptography**, which require specific Python versions for each layer.
9898
* We provide layer distributions for both the **x86_64** and **arm64** architectures.
9999
* For each Python version, we create a single CDK package containing both x86_64 and arm64 assets to optimize deployment performance.
100100

@@ -111,6 +111,7 @@ graph LR
111111
Fetch --> P310[<strong>Python 3.10</strong>]
112112
Fetch --> P311[<strong>Python 3.11</strong>]
113113
Fetch --> P312[<strong>Python 3.12</strong>]
114+
Fetch --> P313[<strong>Python 3.13</strong>]
114115
115116
subgraph build ["LAYER BUILD"]
116117
P38 --> P38x86[build x86_64]
@@ -124,6 +125,8 @@ graph LR
124125
P311 --> P311arm64[build arm64]
125126
P312 --> P312x86[build x86_64]
126127
P312 --> P312arm64[build arm64]
128+
P313 --> P313x86[build x86_64]
129+
P313 --> P313arm64[build arm64]
127130
P38x86 --> CDKP1[CDK Package]
128131
P38arm64 --> CDKP1[CDK Package]
129132
P39x86 --> CDKP2[CDK Package]
@@ -134,6 +137,8 @@ graph LR
134137
P311arm64 --> CDKP4[CDK Package]
135138
P312x86 --> CDKP5[CDK Package]
136139
P312arm64 --> CDKP5[CDK Package]
140+
P313x86 --> CDKP6[CDK Package]
141+
P313arm64 --> CDKP6[CDK Package]
137142
end
138143
139144
subgraph beta ["BETA (all regions)"]
@@ -142,6 +147,7 @@ graph LR
142147
CDKP3 --> DeployBeta
143148
CDKP4 --> DeployBeta
144149
CDKP5 --> DeployBeta
150+
CDKP6 --> DeployBeta
145151
DeployBeta --> RunBetaCanary["Beta canary tests<br> <i>(all packages)</i>"]
146152
end
147153
subgraph prod ["PROD (all regions)"]

0 commit comments

Comments
 (0)