Skip to content

Commit 36b87b5

Browse files
authored
bazel: Add python3.11 as possible version (#3482)
Signed-off-by: Ryan Northey <[email protected]>
1 parent 5f638bf commit 36b87b5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bazel/MODULE.bazel

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,18 @@ bazel_lib_toolchains = use_extension("@aspect_bazel_lib//lib:extensions.bzl", "t
1717
bazel_lib_toolchains.jq(version = "1.7")
1818
use_repo(bazel_lib_toolchains, "jq", "jq_toolchains")
1919

20+
PYTHON_VERSION_DEFAULT = "3.12"
21+
2022
PYTHON_VERSIONS = [
23+
"3.11",
2124
"3.12",
2225
]
2326

2427
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
2528

2629
[
2730
python.toolchain(
28-
is_default = python_version == PYTHON_VERSIONS[-1],
31+
is_default = python_version == PYTHON_VERSION_DEFAULT,
2932
python_version = python_version,
3033
)
3134
for python_version in PYTHON_VERSIONS

0 commit comments

Comments
 (0)