Debian Codegraph @

src/python/grpcio_tests/tests/stress/BUILD.bazel

raw
1 # Copyright 2021 The gRPC Authors
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14 load("@rules_proto//proto:defs.bzl", "proto_library")
15 load("@com_github_grpc_grpc//bazel:python_rules.bzl", "py_grpc_library", "py_proto_library")
16
17 proto_library(
18 name = "unary_stream_benchmark_proto",
19 srcs = ["unary_stream_benchmark.proto"],
20 deps = [],
21 )
22
23 py_proto_library(
24 name = "unary_stream_benchmark_py_pb2",
25 deps = [":unary_stream_benchmark_proto"],
26 )
27
28 py_grpc_library(
29 name = "unary_stream_benchmark_py_pb2_grpc",
30 srcs = [":unary_stream_benchmark_proto"],
31 deps = [":unary_stream_benchmark_py_pb2"],
32 )
33
34 py_binary(
35 name = "unary_stream_benchmark",
36 srcs = ["unary_stream_benchmark.py"],
37 python_version = "PY3",
38 srcs_version = "PY3",
39 deps = [
40 ":unary_stream_benchmark_py_pb2",
41 ":unary_stream_benchmark_py_pb2_grpc",
42 "//src/python/grpcio/grpc:grpcio",
43 ],
44 )