Skip to content

Commit 38faaef

Browse files
ShadowCat567aws-amplify-bot
andauthored
chore: Upgrade baseline python function version to 3.13 (#14261)
chore: upgrade python functions to 3.13 Co-authored-by: aws-amplify-bot <aws@amazon.com>
1 parent 35c33d4 commit 38faaef

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

packages/amplify-e2e-tests/functions/titlecase.pipfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ verify_ssl = true
99
titlecase = "==0.12.0"
1010

1111
[requires]
12-
python_version = "3.8"
12+
python_version = "3.13"

packages/amplify-e2e-tests/src/__tests__/layer-2.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -371,13 +371,13 @@ describe('amplify add lambda layer with changes', () => {
371371
add python layer
372372
add files in opt
373373
push
374-
remove lib/python3.8/site-packages (simulate gitignore),
374+
remove lib/python3.13/site-packages (simulate gitignore),
375375
amplify status -> no change
376376
delete Pipfile.lock
377377
amplify status -> update
378378
push
379379
-> should not create layer version, (it should force a pip install),
380-
lib/python3.8/site-packages should exist with content, push should succeed
380+
lib/python3.13/site-packages should exist with content, push should succeed
381381
*/
382382

383383
it('add python layer, remove lock file, site-packages, verify status, push', async () => {
@@ -405,7 +405,7 @@ describe('amplify add lambda layer with changes', () => {
405405

406406
const firstArn = getCurrentLayerArnFromMeta(projRoot, { layerName, projName });
407407

408-
// 1. Remove lib/python3.8/site-packages
408+
// 1. Remove lib/python3.13/site-packages
409409
// 2. Check status: No Change
410410
const layerPath = path.join(
411411
projRoot,

packages/amplify-python-function-runtime-provider/resources/Pipfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ verify_ssl = true
88
[packages]
99

1010
[requires]
11-
python_version = "3.8"
11+
python_version = "3.13"

packages/amplify-python-function-runtime-provider/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const functionRuntimeContributorFactory: FunctionRuntimeContributorFactor
1818
runtime: {
1919
name: 'Python',
2020
value: 'python',
21-
cloudTemplateValue: 'python3.8',
21+
cloudTemplateValue: 'python3.13',
2222
defaultHandler: 'index.handler',
2323
layerExecutablePath: 'python',
2424
layerDefaultFiles: [

packages/amplify-python-function-template-provider/resources/hello-world/Pipfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ verify_ssl = true
99
src = {editable = true, path = "./src"}
1010

1111
[requires]
12-
python_version = "3.8"
12+
python_version = "3.13"

0 commit comments

Comments
 (0)