1load("//bazel:python_rules.bzl", "py_grpc_library", "py_proto_library") 2 3package(default_visibility = ["//visibility:public"]) 4 5py_proto_library( 6 name = "channelz_py_pb2", 7 deps = ["//src/proto/grpc/channelz:channelz_proto_descriptors"], 8) 9 10py_grpc_library( 11 name = "channelz_py_pb2_grpc", 12 srcs = ["//src/proto/grpc/channelz:channelz_proto_descriptors"], 13 strip_prefixes = ["src.python.grpcio_channelz."], 14 deps = [":channelz_py_pb2"], 15) 16 17py_library( 18 name = "grpc_channelz", 19 srcs = glob(["*.py"]), 20 imports = ["../../"], 21 deps = [ 22 ":channelz_py_pb2", 23 ":channelz_py_pb2_grpc", 24 "//src/python/grpcio/grpc:grpcio", 25 ], 26) 27