Skip to content

Commit 48eb023

Browse files
rickeylevcopybara-github
authored andcommitted
deps: rules_python 0.4.0 -> 0.22.0
Raise rules_python version to 0.22.0 so that py_proto_library is available. The py_proto_library rule was introduced in 0.17.0, but there's been a variety of fixes since then, so using a newer version is more advisable. Note: A difference between 0.4.0 and 0.22.0 is that 0.4.0 calls `register_toolchains("@bazel_tools//tools/python:autodetecting_toolchain")` to provide an extremely minimal, though incomplete, Python toolchain. 0.22.0 does not do that, and does not provide any Python toolchain by default. Fixes #20315 PiperOrigin-RevId: 586758674 Change-Id: Ia479f4475d3bbbf048642470a3e33f272c2eba2e
1 parent 1691f60 commit 48eb023

File tree

5 files changed

+1948
-100
lines changed

5 files changed

+1948
-100
lines changed

MODULE.bazel.lock

Lines changed: 11 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/MODULE.tools

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ bazel_dep(name = "rules_cc", version = "0.0.9")
88
bazel_dep(name = "rules_java", version = "7.3.0")
99
bazel_dep(name = "rules_license", version = "0.0.3")
1010
bazel_dep(name = "rules_proto", version = "4.0.0")
11-
bazel_dep(name = "rules_python", version = "0.4.0")
11+
bazel_dep(name = "rules_python", version = "0.22.0")
1212

1313
bazel_dep(name = "platforms", version = "0.0.7")
1414
bazel_dep(name = "protobuf", version = "3.19.6", repo_name = "com_google_protobuf")

src/test/py/bazel/bzlmod/bazel_module_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def setUp(self):
5454
'build --java_language_version=8',
5555
'build --tool_java_language_version=8',
5656
'build --lockfile_mode=update',
57+
'build --extra_toolchains=@bazel_tools//tools/python:autodetecting_toolchain' # fmt: skip pylint: disable=line-too-long
5758
],
5859
)
5960
self.ScratchFile('WORKSPACE')

src/test/py/bazel/bzlmod/bazel_repo_mapping_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def setUp(self):
5252
'build --java_language_version=8',
5353
'build --tool_java_language_version=8',
5454
'build --lockfile_mode=update',
55+
'build --extra_toolchains=@bazel_tools//tools/python:autodetecting_toolchain' # fmt: skip pylint: disable=line-too-long
5556
],
5657
)
5758
self.ScratchFile('WORKSPACE')

0 commit comments

Comments
 (0)