Skip to content

Commit ccf1575

Browse files
mattmoorpcj
authored andcommitted
Update rules_python to avoid builtin conflict.
This renames `package` to `requirement` to avoid a conflict with a Bazel built-in function.
1 parent 7b53cea commit ccf1575

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

WORKSPACE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ node_repositories()
7373

7474
github_archive(
7575
name = "io_bazel_rules_python",
76-
commit = "7f4cc9244dac7637d514e4f86364507681dda37e",
76+
commit = "d6fbb0fb2a5c8e318dd4de5104dc41358cefaa90",
7777
org = "bazelbuild",
7878
repo = "rules_python",
79-
sha256 = "ad11daa2e991309eb672b9f18cdc650893e30610fbcccac539bd9c7ca5a5f7ca",
79+
sha256 = "43dceb1be46d1c6c1a08d510931982664f1115a399a3bce1a419e63143e5b6c1",
8080
)
8181

8282
load("@io_bazel_rules_python//python:pip.bzl", "pip_repositories", "pip_import")

examples/helloworld/python/BUILD

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package(default_visibility = ["//visibility:public"])
22

3-
load("@pip_grpcio//:requirements.bzl", "package")
3+
load("@pip_grpcio//:requirements.bzl", "requirement")
44

55
py_binary(
66
name = "greeter_client",
@@ -9,7 +9,7 @@ py_binary(
99
],
1010
deps = [
1111
"//examples/helloworld/proto:py",
12-
package("grpcio"),
12+
requirement("grpcio"),
1313
],
1414
)
1515

@@ -36,6 +36,6 @@ py_library(
3636
],
3737
deps = [
3838
"//examples/helloworld/proto:py",
39-
package("grpcio"),
39+
requirement("grpcio"),
4040
],
4141
)

0 commit comments

Comments
 (0)