From 25f3439c910e0168b4dbe776b77526eed84f5213 Mon Sep 17 00:00:00 2001 From: Richard Belleville Date: Wed, 26 Jun 2019 09:45:47 -0700 Subject: [PATCH] Make whole package testonly --- examples/python/cancellation/BUILD.bazel | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/examples/python/cancellation/BUILD.bazel b/examples/python/cancellation/BUILD.bazel index 62bc7b2fa46..81cd3a881b8 100644 --- a/examples/python/cancellation/BUILD.bazel +++ b/examples/python/cancellation/BUILD.bazel @@ -17,22 +17,21 @@ load("@grpc_python_dependencies//:requirements.bzl", "requirement") load("//bazel:python_rules.bzl", "py_proto_library") +package(default_testonly = 1) + proto_library( name = "hash_name_proto", srcs = ["hash_name.proto"], - testonly = 1, ) py_proto_library( name = "hash_name_proto_pb2", deps = [":hash_name_proto"], - testonly = 1, well_known_protos = False, ) py_binary( name = "client", - testonly = 1, srcs = ["client.py"], deps = [ "//src/python/grpcio/grpc:grpcio", @@ -49,12 +48,10 @@ py_library( deps = [ ":hash_name_proto_pb2", ], - testonly = 1, ) py_binary( name = "server", - testonly = 1, srcs = ["server.py"], deps = [ "//src/python/grpcio/grpc:grpcio",