Skip to content

Commit

Permalink
Enabling support for python 3.11 (#676)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaytee-fn authored Nov 10, 2023
1 parent 6233d63 commit 081af89
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions langs/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ func init() {
registerHelper(&NodeLangHelper{Version: "16"})
registerHelper(&NodeLangHelper{Version: "14"})
// order matter, 'python' will pick up the first PythonLangHelper
registerHelper(&PythonLangHelper{Version: "3.11"})
registerHelper(&PythonLangHelper{Version: "3.9"})
registerHelper(&PythonLangHelper{Version: "3.8"})
registerHelper(&PythonLangHelper{Version: "3.8.5"})
Expand Down
2 changes: 1 addition & 1 deletion test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func TestPythonCall(t *testing.T) {
h.MkDir(funcName)
h.Cd(funcName)
h.Fn("init", "--name", funcName, "--runtime", "python3.9").AssertSuccess()
h.Fn("init", "--name", funcName, "--runtime", "python3.11").AssertSuccess()
appName := h.NewAppName()
h.Fn("deploy", "--local", appName).AssertSuccess()
h.Fn("invoke", appName, funcName).AssertSuccess()
Expand Down
1 change: 1 addition & 0 deletions test/cli_init_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ var runtimes = []string{
"node16",
"node14",
"python",
"python3.11",
"python3.9",
"python3.8",
}
Expand Down
1 change: 1 addition & 0 deletions test/cli_lang_boilerplate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ var Runtimes = []struct {
{"python", ""},
{"python3.8", ""},
{"python3.9", ""},
{"python3.11", ""},
}

func TestFnInitWithBoilerplateBuildsRuns(t *testing.T) {
Expand Down

0 comments on commit 081af89

Please sign in to comment.