Debian Codegraph @

src/python/grpcio_health_checking/grpc_health/v1/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 = "health_py_pb2",
20 imports = ["../../"],
21 deps = ["//src/proto/grpc/health/v1:health_proto_descriptor"],
22 )
23
24 py_grpc_library(
25 name = "health_py_pb2_grpc",
26 srcs = ["//src/proto/grpc/health/v1:health_proto_descriptor"],
27 strip_prefixes = ["src.python.grpcio_health_checking."],
28 deps = [":health_py_pb2"],
29 )
30
31 py_library(
32 name = "grpc_health",
33 srcs = [
34 "_async.py",
35 "health.py",
36 ],
37 imports = ["../../"],
38 deps = [
39 ":health_py_pb2",
40 ":health_py_pb2_grpc",
41 "//src/python/grpcio/grpc:grpcio",
42 ],
43 )