Skip to content

Commit 45aa1e1

Browse files
Use rules_python (#2793)
Fixes Bazel 8 build failures. Signed-off-by: Brentley Jones <[email protected]>
1 parent 1ff8aa6 commit 45aa1e1

File tree

6 files changed

+11
-0
lines changed

6 files changed

+11
-0
lines changed

BUILD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
load("@buildifier_prebuilt//:rules.bzl", "buildifier")
2+
load("@rules_python//python:defs.bzl", "py_library")
23

34
# See the note in __init__.py for why this is needed.
45
py_library(
@@ -80,6 +81,7 @@ _BUILDIFIER_WARNINGS = [
8081
"load-on-top",
8182
"module-docstring",
8283
"name-conventions",
84+
"native-py",
8385
"no-effect",
8486
"out-of-order-load",
8587
"output-group",

MODULE.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ bazel_dep(
1717
version = "2.0.0",
1818
repo_name = "build_bazel_rules_apple",
1919
)
20+
bazel_dep(name = "rules_python", version = "0.27.1")
2021

2122
internal = use_extension("//xcodeproj:extensions.bzl", "internal")
2223
use_repo(internal, "rules_xcodeproj_generated")

tools/extension_point_identifiers_parser/BUILD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
load("@rules_python//python:defs.bzl", "py_binary")
2+
13
py_binary(
24
name = "extension_point_identifiers_parser",
35
srcs = ["extension_point_identifiers_parser.py"],

tools/generators/selected_model_versions/BUILD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
load("@rules_python//python:defs.bzl", "py_binary", "py_library")
2+
13
py_library(
24
name = "selected_model_versions_library",
35
srcs = ["selected_model_versions.py"],

tools/params_processors/BUILD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
load("@rules_python//python:defs.bzl", "py_binary", "py_library", "py_test")
2+
13
py_library(
24
name = "cc_compiler_params_processor_library",
35
srcs = ["cc_compiler_params_processor.py"],

tools/xccurrentversions_parser/BUILD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
load("@rules_python//python:defs.bzl", "py_binary")
2+
13
py_binary(
24
name = "xccurrentversions_parser",
35
srcs = ["xccurrentversions_parser.py"],

0 commit comments

Comments
 (0)