Debian Codegraph @

src/python/grpcio_reflection/grpc_reflection/v1alpha/BUILD.bazel

raw
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.
14 load("//bazel:python_rules.bzl", "py_grpc_library", "py_proto_library")
15
16 package(default_visibility = ["//visibility:public"])
17
18 py_proto_library(
19 name = "reflection_py_pb2",
20 imports = ["../../"],
21 deps = ["//src/proto/grpc/reflection/v1alpha:reflection_proto_descriptor"],
22 )
23
24 py_grpc_library(
25 name = "reflection_py_pb2_grpc",
26 srcs = ["//src/proto/grpc/reflection/v1alpha:reflection_proto_descriptor"],
27 strip_prefixes = ["src.python.grpcio_reflection."],
28 deps = ["reflection_py_pb2"],
29 )
30
31 py_library(
32 name = "grpc_reflection",
33 srcs = glob(["*.py"]),
34 imports = ["../../"],
35 deps = [
36 ":reflection_py_pb2",
37 ":reflection_py_pb2_grpc",
38 "//src/python/grpcio/grpc:grpcio",
39 "@com_google_protobuf//:protobuf_python",
40 ],
41 )