From 873e0757cb841288d48514b0fe2e50b870171f61 Mon Sep 17 00:00:00 2001 From: Naresh Date: Tue, 9 Oct 2018 17:04:11 +0000 Subject: Bazel rules for Python grpcio_health_checking Add Bazel rules for building and testing grpcio_health_checking. An unofficial fork for rules_protobuf is used for now as it incorporates a change (#196 by duduko on the upstream repo pubref/rules_protobuf) which allows the protoc compiler to compile generated protos too. This was not merged because the change was failing for golang, but works as expected for Python. This is needed because grpcio_health_checking fetches it's proto file from a different directory (previously achived through setup.py) and thus needs to be moved to the required location within bazel-genfiles using a genrule. --- WORKSPACE | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'WORKSPACE') diff --git a/WORKSPACE b/WORKSPACE index 9a0c41977f..a547c24cbe 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -34,10 +34,11 @@ pip_import( load("@grpc_python_dependencies//:requirements.bzl", "pip_install") pip_install() +# NOTE(https://github.com/pubref/rules_protobuf/pull/196): Switch to upstream repo after this gets merged. git_repository( name="org_pubref_rules_protobuf", - remote="https://github.com/pubref/rules_protobuf", - tag="v0.8.2", + remote="https://github.com/ghostwriternr/rules_protobuf", + tag="v0.8.2.1-alpha", ) load("@org_pubref_rules_protobuf//python:rules.bzl", "py_proto_repositories") -- cgit v1.2.3