diff options
author | Naresh <ghostwriternr@gmail.com> | 2018-10-11 08:43:34 +0000 |
---|---|---|
committer | Nathaniel Manista <nathaniel@google.com> | 2018-11-01 12:01:02 +0000 |
commit | cd931752ca1ef7274dfe039dd1d192df306fa6c4 (patch) | |
tree | 837f8797d052d1f5c1a59d84c521d2d7ceafdc5c /src/proto | |
parent | e4382abc9ca48493a5b45a02bc2172cca8739b2c (diff) |
Bazel rules for gRPC Python interop tests
Add interop tests for gRPC Python. py_proto_library rules are added to
src/proto/grpc/testing/BUILD since grpc_proto_library is not compatible
with py_* rules.
'requests' python module is added to requirements.bazel.txt as it is a
dependency for google-auth. Previously, this was installed through
tools/run_tests/helper_scripts/build_python.sh before running tests.
Diffstat (limited to 'src/proto')
-rw-r--r-- | src/proto/grpc/testing/BUILD | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/proto/grpc/testing/BUILD b/src/proto/grpc/testing/BUILD index 7d68f87d3b..7048911b9a 100644 --- a/src/proto/grpc/testing/BUILD +++ b/src/proto/grpc/testing/BUILD @@ -75,6 +75,15 @@ grpc_proto_library( has_services = False, ) +py_proto_library( + name = "py_messages_proto", + protos = ["messages.proto",], + with_grpc = True, + deps = [ + requirement('protobuf'), + ], +) + grpc_proto_library( name = "metrics_proto", srcs = ["metrics.proto"], @@ -127,3 +136,17 @@ grpc_proto_library( "messages_proto", ], ) + +py_proto_library( + name = "py_test_proto", + protos = ["test.proto",], + with_grpc = True, + deps = [ + requirement('protobuf'), + ], + proto_deps = [ + ":py_empty_proto", + ":py_messages_proto", + ] +) + |