Skip to content

Commit

Permalink
feat: Add support for Python 3.9 runtime (#1267)
Browse files Browse the repository at this point in the history
  • Loading branch information
eeroniemi committed Sep 6, 2021
1 parent 6eb15d7 commit c9b4f9e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/config/supportedRuntimes.js
Expand Up @@ -37,6 +37,7 @@ export const supportedPython = new Set([
'python3.6',
'python3.7',
'python3.8',
'python3.9',
])

// RUBY
Expand Down
5 changes: 5 additions & 0 deletions src/lambda/handler-runner/HandlerRunner.js
Expand Up @@ -47,6 +47,11 @@ export default class HandlerRunner {
throw new Error('Unsupported runtime')
}

if (runtime === 'python3.9') {
logWarning('"python3.9" runtime is not supported with docker.')
throw new Error('Unsupported runtime')
}

const dockerOptions = {
host: this.#options.dockerHost,
hostServicePath: this.#options.dockerHostServicePath,
Expand Down

0 comments on commit c9b4f9e

Please sign in to comment.