1# Copyright 2021 The gRPC Authors 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14load("//bazel:python_rules.bzl", "py_grpc_library", "py_proto_library") 15 16package(default_visibility = ["//visibility:public"]) 17 18py_proto_library( 19 name = "channelz_py_pb2", 20 imports = ["../../"], 21 deps = ["//src/proto/grpc/channelz:channelz_proto_descriptors"], 22) 23 24py_grpc_library( 25 name = "channelz_py_pb2_grpc", 26 srcs = ["//src/proto/grpc/channelz:channelz_proto_descriptors"], 27 strip_prefixes = ["src.python.grpcio_channelz."], 28 deps = [":channelz_py_pb2"], 29) 30 31py_library( 32 name = "grpc_channelz", 33 srcs = glob(["*.py"]), 34 imports = ["../../"], 35 deps = [ 36 ":channelz_py_pb2", 37 ":channelz_py_pb2_grpc", 38 "//src/python/grpcio/grpc:grpcio", 39 ], 40) 41