Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion packages/core/src/eventSchemas/models/schemaCodeLangs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,16 @@ export function getLanguageDetails(language: SchemaCodeLangs): {
}

export function supportsEventBridgeTemplates(runtime: Runtime): boolean {
return ['python3.7', 'python3.8', 'python3.9', 'python3.10', 'python3.11', 'python3.12', 'go1.x'].includes(runtime)
return [
'python3.7',
'python3.8',
'python3.9',
'python3.10',
'python3.11',
'python3.12',
'python3.13',
'go1.x',
].includes(runtime)
}

export function getApiValueForSchemasDownload(runtime: Runtime): string {
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/lambda/models/samLambdaRuntime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export function getNodeMajorVersion(version?: string): number | undefined {
}

export const pythonRuntimes: ImmutableSet<Runtime> = ImmutableSet<Runtime>([
'python3.13',
'python3.12',
'python3.11',
'python3.10',
Expand Down
2 changes: 2 additions & 0 deletions packages/core/src/shared/sam/debugger/pythonSamDebug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,8 @@ function getPythonExeAndBootstrap(runtime: Runtime) {
return { python: '/var/lang/bin/python3.11', bootstrap: '/var/runtime/bootstrap.py' }
case 'python3.12':
return { python: '/var/lang/bin/python3.12', bootstrap: '/var/runtime/bootstrap.py' }
case 'python3.13':
return { python: '/var/lang/bin/python3.13', bootstrap: '/var/runtime/bootstrap.py' }
default:
throw new Error(`Python SAM debug logic ran for invalid Python runtime: ${runtime}`)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ describe('getApiValueForSchemasDownload', function () {
case 'python3.9':
case 'python3.11':
case 'python3.12':
case 'python3.13':
case 'python3.10': {
const result = getApiValueForSchemasDownload(runtime)
assert.strictEqual(result, 'Python36', 'Api value used by schemas api')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ describe('runtimes', function () {
'python3.10',
'python3.11',
'python3.12',
'python3.13',
'python3.7',
'python3.8',
'python3.9',
Expand All @@ -88,6 +89,7 @@ describe('runtimes', function () {
'python3.10',
'python3.11',
'python3.12',
'python3.13',
'python3.7',
'python3.8',
'python3.9',
Expand All @@ -110,6 +112,7 @@ describe('runtimes', function () {
'python3.10',
'python3.11',
'python3.12',
'python3.13',
'python3.7',
'python3.8',
'python3.9',
Expand All @@ -131,6 +134,7 @@ describe('runtimes', function () {
'python3.10',
'python3.11',
'python3.12',
'python3.13',
'python3.7',
'python3.8',
'python3.9',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ describe('getSamTemplateWizardOption', function () {
case 'python3.10':
case 'python3.11':
case 'python3.12':
case 'python3.13':
assert.deepStrictEqual(
result,
validPythonTemplateOptions,
Expand Down
21 changes: 21 additions & 0 deletions packages/core/src/testInteg/sam.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,16 @@ const scenarios: TestScenario[] = [
// https://github.com/microsoft/vscode-python/blob/main/package.json
vscodeMinimum: '1.78.0',
},
{
runtime: 'python3.13',
displayName: 'python 3.13 (ZIP)',
path: 'hello_world/app.py',
debugSessionType: 'python',
language: 'python',
dependencyManager: 'pip',
// https://github.com/microsoft/vscode-python/blob/main/package.json
vscodeMinimum: '1.78.0',
},
{
runtime: 'dotnet6',
displayName: 'dotnet6 (ZIP)',
Expand Down Expand Up @@ -211,6 +221,17 @@ const scenarios: TestScenario[] = [
// https://github.com/microsoft/vscode-python/blob/main/package.json
vscodeMinimum: '1.78.0',
},
{
runtime: 'python3.13',
displayName: 'python 3.13 (ZIP)',
baseImage: 'amazon/python3.13-base',
path: 'hello_world/app.py',
debugSessionType: 'python',
language: 'python',
dependencyManager: 'pip',
// https://github.com/microsoft/vscode-python/blob/main/package.json
vscodeMinimum: '1.78.0',
},
// {
// runtime: 'go1.x',
// displayName: 'go1.x (Image)',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type": "Feature",
"description": "python 3.13 support for SAM and lambda"
}
2 changes: 1 addition & 1 deletion packages/toolkit/README.quickstart.cloud9.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ When you're satisfied with performance, you can [deploy your serverless applicat
The Toolkit _local SAM debugging_ feature supports these runtimes:

- JavaScript (Node.js 14.x, 16.x)
- Python (3.7, 3.8, 3.9, 3.10, 3.11, 3.12)
- Python (3.7, 3.8, 3.9, 3.10, 3.11, 3.12, 3.13)

For more information see [Working with AWS Serverless Applications](https://docs.aws.amazon.com/cloud9/latest/user-guide/serverless-apps-toolkit.html) in the user guide.

Expand Down
Loading