diff --git a/packages/amplify-e2e-tests/functions/titlecase.pipfile b/packages/amplify-e2e-tests/functions/titlecase.pipfile index 006096690e5..378ae445d57 100644 --- a/packages/amplify-e2e-tests/functions/titlecase.pipfile +++ b/packages/amplify-e2e-tests/functions/titlecase.pipfile @@ -9,4 +9,4 @@ verify_ssl = true titlecase = "==0.12.0" [requires] -python_version = "3.8" +python_version = "3.13" diff --git a/packages/amplify-e2e-tests/src/__tests__/layer-2.test.ts b/packages/amplify-e2e-tests/src/__tests__/layer-2.test.ts index a6007b19ebb..25ac819d747 100644 --- a/packages/amplify-e2e-tests/src/__tests__/layer-2.test.ts +++ b/packages/amplify-e2e-tests/src/__tests__/layer-2.test.ts @@ -371,13 +371,13 @@ describe('amplify add lambda layer with changes', () => { add python layer add files in opt push - remove lib/python3.8/site-packages (simulate gitignore), + remove lib/python3.13/site-packages (simulate gitignore), amplify status -> no change delete Pipfile.lock amplify status -> update push -> should not create layer version, (it should force a pip install), - lib/python3.8/site-packages should exist with content, push should succeed + lib/python3.13/site-packages should exist with content, push should succeed */ it('add python layer, remove lock file, site-packages, verify status, push', async () => { @@ -405,7 +405,7 @@ describe('amplify add lambda layer with changes', () => { const firstArn = getCurrentLayerArnFromMeta(projRoot, { layerName, projName }); - // 1. Remove lib/python3.8/site-packages + // 1. Remove lib/python3.13/site-packages // 2. Check status: No Change const layerPath = path.join( projRoot, diff --git a/packages/amplify-python-function-runtime-provider/resources/Pipfile b/packages/amplify-python-function-runtime-provider/resources/Pipfile index b5846df18ca..4f819af807e 100644 --- a/packages/amplify-python-function-runtime-provider/resources/Pipfile +++ b/packages/amplify-python-function-runtime-provider/resources/Pipfile @@ -8,4 +8,4 @@ verify_ssl = true [packages] [requires] -python_version = "3.8" +python_version = "3.13" diff --git a/packages/amplify-python-function-runtime-provider/src/index.ts b/packages/amplify-python-function-runtime-provider/src/index.ts index 1dcab233868..39aa43cb384 100644 --- a/packages/amplify-python-function-runtime-provider/src/index.ts +++ b/packages/amplify-python-function-runtime-provider/src/index.ts @@ -18,7 +18,7 @@ export const functionRuntimeContributorFactory: FunctionRuntimeContributorFactor runtime: { name: 'Python', value: 'python', - cloudTemplateValue: 'python3.8', + cloudTemplateValue: 'python3.13', defaultHandler: 'index.handler', layerExecutablePath: 'python', layerDefaultFiles: [ diff --git a/packages/amplify-python-function-template-provider/resources/hello-world/Pipfile b/packages/amplify-python-function-template-provider/resources/hello-world/Pipfile index 88b01f8a1d1..ee8e3838b95 100644 --- a/packages/amplify-python-function-template-provider/resources/hello-world/Pipfile +++ b/packages/amplify-python-function-template-provider/resources/hello-world/Pipfile @@ -9,4 +9,4 @@ verify_ssl = true src = {editable = true, path = "./src"} [requires] -python_version = "3.8" +python_version = "3.13"