Skip to content

Commit 2067ae3

Browse files
Merge master into feature/sdkv3
2 parents d7ebbf7 + 0e070f6 commit 2067ae3

File tree

10 files changed

+46
-3
lines changed

10 files changed

+46
-3
lines changed

packages/amazonq/test/unit/codewhisperer/util/crossFileContextUtil.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ describe('crossFileContextUtil', function () {
6161
assert.strictEqual(actual.supplementalContextItems[2].content.split('\n').length, 50)
6262
})
6363

64-
it('for t1 group, should return repomap + opentabs context', async function () {
64+
it.skip('for t1 group, should return repomap + opentabs context', async function () {
6565
await toTextEditor(aStringWithLineCount(200), 'CrossFile.java', tempFolder, { preview: false })
6666
const myCurrentEditor = await toTextEditor('', 'TargetFile.java', tempFolder, {
6767
preview: false,

packages/core/src/eventSchemas/models/schemaCodeLangs.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,16 @@ export function getLanguageDetails(language: SchemaCodeLangs): {
5454
}
5555

5656
export function supportsEventBridgeTemplates(runtime: Runtime): boolean {
57-
return ['python3.7', 'python3.8', 'python3.9', 'python3.10', 'python3.11', 'python3.12', 'go1.x'].includes(runtime)
57+
return [
58+
'python3.7',
59+
'python3.8',
60+
'python3.9',
61+
'python3.10',
62+
'python3.11',
63+
'python3.12',
64+
'python3.13',
65+
'go1.x',
66+
].includes(runtime)
5867
}
5968

6069
export function getApiValueForSchemasDownload(runtime: Runtime): string {

packages/core/src/lambda/models/samLambdaRuntime.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export function getNodeMajorVersion(version?: string): number | undefined {
5050
}
5151

5252
export const pythonRuntimes: ImmutableSet<Runtime> = ImmutableSet<Runtime>([
53+
'python3.13',
5354
'python3.12',
5455
'python3.11',
5556
'python3.10',

packages/core/src/shared/sam/debugger/pythonSamDebug.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,8 @@ function getPythonExeAndBootstrap(runtime: Runtime) {
263263
return { python: '/var/lang/bin/python3.11', bootstrap: '/var/runtime/bootstrap.py' }
264264
case 'python3.12':
265265
return { python: '/var/lang/bin/python3.12', bootstrap: '/var/runtime/bootstrap.py' }
266+
case 'python3.13':
267+
return { python: '/var/lang/bin/python3.13', bootstrap: '/var/runtime/bootstrap.py' }
266268
default:
267269
throw new Error(`Python SAM debug logic ran for invalid Python runtime: ${runtime}`)
268270
}

packages/core/src/test/eventSchemas/model/schemaCodeLangs.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ describe('getApiValueForSchemasDownload', function () {
3232
case 'python3.9':
3333
case 'python3.11':
3434
case 'python3.12':
35+
case 'python3.13':
3536
case 'python3.10': {
3637
const result = getApiValueForSchemasDownload(runtime)
3738
assert.strictEqual(result, 'Python36', 'Api value used by schemas api')

packages/core/src/test/lambda/models/samLambdaRuntime.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ describe('runtimes', function () {
7676
'python3.10',
7777
'python3.11',
7878
'python3.12',
79+
'python3.13',
7980
'python3.7',
8081
'python3.8',
8182
'python3.9',
@@ -88,6 +89,7 @@ describe('runtimes', function () {
8889
'python3.10',
8990
'python3.11',
9091
'python3.12',
92+
'python3.13',
9193
'python3.7',
9294
'python3.8',
9395
'python3.9',
@@ -110,6 +112,7 @@ describe('runtimes', function () {
110112
'python3.10',
111113
'python3.11',
112114
'python3.12',
115+
'python3.13',
113116
'python3.7',
114117
'python3.8',
115118
'python3.9',
@@ -131,6 +134,7 @@ describe('runtimes', function () {
131134
'python3.10',
132135
'python3.11',
133136
'python3.12',
137+
'python3.13',
134138
'python3.7',
135139
'python3.8',
136140
'python3.9',

packages/core/src/test/lambda/models/samTemplates.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ describe('getSamTemplateWizardOption', function () {
6969
case 'python3.10':
7070
case 'python3.11':
7171
case 'python3.12':
72+
case 'python3.13':
7273
assert.deepStrictEqual(
7374
result,
7475
validPythonTemplateOptions,

packages/core/src/testInteg/sam.test.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,16 @@ const scenarios: TestScenario[] = [
110110
// https://github.com/microsoft/vscode-python/blob/main/package.json
111111
vscodeMinimum: '1.78.0',
112112
},
113+
{
114+
runtime: 'python3.13',
115+
displayName: 'python 3.13 (ZIP)',
116+
path: 'hello_world/app.py',
117+
debugSessionType: 'python',
118+
language: 'python',
119+
dependencyManager: 'pip',
120+
// https://github.com/microsoft/vscode-python/blob/main/package.json
121+
vscodeMinimum: '1.78.0',
122+
},
113123
{
114124
runtime: 'dotnet6',
115125
displayName: 'dotnet6 (ZIP)',
@@ -211,6 +221,17 @@ const scenarios: TestScenario[] = [
211221
// https://github.com/microsoft/vscode-python/blob/main/package.json
212222
vscodeMinimum: '1.78.0',
213223
},
224+
{
225+
runtime: 'python3.13',
226+
displayName: 'python 3.13 (ZIP)',
227+
baseImage: 'amazon/python3.13-base',
228+
path: 'hello_world/app.py',
229+
debugSessionType: 'python',
230+
language: 'python',
231+
dependencyManager: 'pip',
232+
// https://github.com/microsoft/vscode-python/blob/main/package.json
233+
vscodeMinimum: '1.78.0',
234+
},
214235
// {
215236
// runtime: 'go1.x',
216237
// displayName: 'go1.x (Image)',
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Feature",
3+
"description": "python 3.13 support for SAM and lambda"
4+
}

packages/toolkit/README.quickstart.cloud9.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ When you're satisfied with performance, you can [deploy your serverless applicat
8989
The Toolkit _local SAM debugging_ feature supports these runtimes:
9090

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

9494
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.
9595

0 commit comments

Comments
 (0)