1 # gRPC Bazel BUILD file.
3 # Copyright 2019 The gRPC authors.
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
17 load("@grpc_python_dependencies//:requirements.bzl", "requirement")
18 load("//bazel:python_rules.bzl", "py_grpc_library", "py_proto_library")
20 package(default_testonly = 1)
23 name = "hash_name_proto",
24 srcs = ["hash_name.proto"],
28 name = "hash_name_py_pb2",
29 deps = [":hash_name_proto"],
33 name = "hash_name_py_pb2_grpc",
34 srcs = [":hash_name_proto"],
35 deps = [":hash_name_py_pb2"],
41 python_version = "PY3",
42 srcs_version = "PY2AND3",
45 ":hash_name_py_pb2_grpc",
46 "//src/python/grpcio/grpc:grpcio",
54 srcs_version = "PY2AND3",
63 python_version = "PY3",
64 srcs_version = "PY2AND3",
66 "//src/python/grpcio/grpc:grpcio",
70 "//conditions:default": ["@futures//:futures"],
76 name = "test/_cancellation_example_test",
78 srcs = ["test/_cancellation_example_test.py"],
83 python_version = "PY3",