Skip to content

Commit 55dae93

Browse files
authored
Merge pull request #121 from chumbert2/main
Allow to use Python3.14
2 parents 5d7fa58 + bd60d37 commit 55dae93

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

lib/plugins/aws/invoke-local/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ class AwsInvokeLocal {
262262
'python3.11',
263263
'python3.12',
264264
'python3.13',
265+
'python3.14',
265266
].includes(runtime)
266267
) {
267268
const handlerComponents = handler.split(/\./);

lib/plugins/aws/provider.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,7 @@ class AwsProvider {
648648
'python3.11',
649649
'python3.12',
650650
'python3.13',
651+
'python3.14',
651652
'ruby2.7',
652653
'ruby3.2',
653654
'ruby3.3',

test/unit/lib/plugins/aws/invoke-local/index.test.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,17 @@ describe('AwsInvokeLocal', () => {
495495
).to.be.equal(true);
496496
});
497497

498+
it('should call invokeLocalPython when python3.14 runtime is set', async () => {
499+
awsInvokeLocal.options.functionObj.runtime = 'python3.14';
500+
await awsInvokeLocal.invokeLocal();
501+
// NOTE: this is important so that tests on Windows won't fail
502+
const runtime = process.platform === 'win32' ? 'python.exe' : 'python3.14';
503+
expect(invokeLocalPythonStub.calledOnce).to.be.equal(true);
504+
expect(
505+
invokeLocalPythonStub.calledWithExactly(runtime, 'handler', 'hello', {}, undefined)
506+
).to.be.equal(true);
507+
});
508+
498509
it('should call invokeLocalJava when java8 runtime is set', async () => {
499510
awsInvokeLocal.options.functionObj.runtime = 'java8';
500511
await awsInvokeLocal.invokeLocal();

types/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export type AwsLambdaRuntime =
7474
| "python3.11"
7575
| "python3.12"
7676
| "python3.13"
77+
| "python3.14"
7778
| "ruby2.7"
7879
| "ruby3.2"
7980
| "ruby3.3"

0 commit comments

Comments
 (0)