Make whole package testonly

pull/19465/head
Richard Belleville 6 years ago
parent 7486026eb9
commit 25f3439c91
  1. 7
      examples/python/cancellation/BUILD.bazel

@ -17,22 +17,21 @@
load("@grpc_python_dependencies//:requirements.bzl", "requirement") load("@grpc_python_dependencies//:requirements.bzl", "requirement")
load("//bazel:python_rules.bzl", "py_proto_library") load("//bazel:python_rules.bzl", "py_proto_library")
package(default_testonly = 1)
proto_library( proto_library(
name = "hash_name_proto", name = "hash_name_proto",
srcs = ["hash_name.proto"], srcs = ["hash_name.proto"],
testonly = 1,
) )
py_proto_library( py_proto_library(
name = "hash_name_proto_pb2", name = "hash_name_proto_pb2",
deps = [":hash_name_proto"], deps = [":hash_name_proto"],
testonly = 1,
well_known_protos = False, well_known_protos = False,
) )
py_binary( py_binary(
name = "client", name = "client",
testonly = 1,
srcs = ["client.py"], srcs = ["client.py"],
deps = [ deps = [
"//src/python/grpcio/grpc:grpcio", "//src/python/grpcio/grpc:grpcio",
@ -49,12 +48,10 @@ py_library(
deps = [ deps = [
":hash_name_proto_pb2", ":hash_name_proto_pb2",
], ],
testonly = 1,
) )
py_binary( py_binary(
name = "server", name = "server",
testonly = 1,
srcs = ["server.py"], srcs = ["server.py"],
deps = [ deps = [
"//src/python/grpcio/grpc:grpcio", "//src/python/grpcio/grpc:grpcio",

Loading…
Cancel
Save