ce3121fa90e19747b31c7764208f2ff6e558920d
[platform/upstream/grpc.git] / src / python / grpcio_health_checking / grpc_health / v1 / BUILD.bazel
1 load("@grpc_python_dependencies//:requirements.bzl", "requirement")
2 load("@org_pubref_rules_protobuf//python:rules.bzl", "py_proto_library")
3
4 package(default_visibility = ["//visibility:public"])
5
6 genrule(
7     name = "mv_health_proto",
8     srcs = [
9         "//src/proto/grpc/health/v1:health_proto_file",
10     ],
11     outs = ["health.proto",],
12     cmd = "cp $< $@",
13 )
14
15 py_proto_library(
16     name = "py_health_proto",
17     protos = [":mv_health_proto",],
18     with_grpc = True,
19     deps = [
20         requirement('protobuf'),
21     ],
22 )
23
24 py_library(
25     name = "grpc_health",
26     srcs = ["health.py",],
27     deps = [
28         ":py_health_proto",
29         "//src/python/grpcio/grpc:grpcio",
30     ],
31     imports=["../../",],
32 )
33