• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1load("//bazel:python_rules.bzl", "py_grpc_library", "py_proto_library")
2
3package(default_visibility = ["//visibility:public"])
4
5py_proto_library(
6    name = "health_py_pb2",
7    deps = ["//src/proto/grpc/health/v1:health_proto_descriptor"],
8)
9
10py_grpc_library(
11    name = "health_py_pb2_grpc",
12    srcs = ["//src/proto/grpc/health/v1:health_proto_descriptor"],
13    strip_prefixes = ["src.python.grpcio_health_checking."],
14    deps = [":health_py_pb2"],
15)
16
17py_library(
18    name = "grpc_health",
19    srcs = [
20        "_async.py",
21        "health.py",
22    ],
23    imports = ["../../"],
24    deps = [
25        ":health_py_pb2",
26        ":health_py_pb2_grpc",
27        "//src/python/grpcio/grpc:grpcio",
28    ],
29)
30