1load("@rules_proto//proto:defs.bzl", "proto_library") 2load("@com_github_grpc_grpc//bazel:python_rules.bzl", "py_grpc_library", "py_proto_library") 3 4proto_library( 5 name = "unary_stream_benchmark_proto", 6 srcs = ["unary_stream_benchmark.proto"], 7 deps = [], 8) 9 10py_proto_library( 11 name = "unary_stream_benchmark_py_pb2", 12 deps = [":unary_stream_benchmark_proto"], 13) 14 15py_grpc_library( 16 name = "unary_stream_benchmark_py_pb2_grpc", 17 srcs = [":unary_stream_benchmark_proto"], 18 deps = [":unary_stream_benchmark_py_pb2"], 19) 20 21py_binary( 22 name = "unary_stream_benchmark", 23 srcs = ["unary_stream_benchmark.py"], 24 python_version = "PY3", 25 srcs_version = "PY3", 26 deps = [ 27 ":unary_stream_benchmark_py_pb2", 28 ":unary_stream_benchmark_py_pb2_grpc", 29 "//src/python/grpcio/grpc:grpcio", 30 ], 31) 32