Debian Codegraph @

examples/python/debug/BUILD.bazel

raw
1 # Copyright 2019 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
15 package(default_testonly = 1)
16
17 py_binary(
18 name = "debug_server",
19 srcs = ["debug_server.py"],
20 data = ["helloworld.proto"],
21 imports = ["."],
22 python_version = "PY3",
23 deps = [
24 "//src/python/grpcio/grpc:grpcio",
25 "//src/python/grpcio_channelz/grpc_channelz/v1:grpc_channelz",
26 "//tools/distrib/python/grpcio_tools:grpc_tools",
27 ],
28 )
29
30 py_binary(
31 name = "send_message",
32 srcs = ["send_message.py"],
33 data = ["helloworld.proto"],
34 imports = ["."],
35 python_version = "PY3",
36 deps = [
37 "//src/python/grpcio/grpc:grpcio",
38 "//tools/distrib/python/grpcio_tools:grpc_tools",
39 ],
40 )
41
42 py_binary(
43 name = "get_stats",
44 srcs = ["get_stats.py"],
45 python_version = "PY3",
46 deps = [
47 "//src/python/grpcio/grpc:grpcio",
48 "//src/python/grpcio_channelz/grpc_channelz/v1:grpc_channelz",
49 ],
50 )
51
52 py_binary(
53 name = "asyncio_debug_server",
54 srcs = ["asyncio_debug_server.py"],
55 data = ["helloworld.proto"],
56 imports = ["."],
57 python_version = "PY3",
58 deps = [
59 "//src/python/grpcio/grpc:grpcio",
60 "//src/python/grpcio_channelz/grpc_channelz/v1:grpc_channelz",
61 "//tools/distrib/python/grpcio_tools:grpc_tools",
62 ],
63 )
64
65 py_binary(
66 name = "asyncio_send_message",
67 srcs = ["asyncio_send_message.py"],
68 data = ["helloworld.proto"],
69 imports = ["."],
70 python_version = "PY3",
71 deps = [
72 "//src/python/grpcio/grpc:grpcio",
73 "//tools/distrib/python/grpcio_tools:grpc_tools",
74 ],
75 )
76
77 py_binary(
78 name = "asyncio_get_stats",
79 srcs = ["asyncio_get_stats.py"],
80 python_version = "PY3",
81 deps = [
82 "//src/python/grpcio/grpc:grpcio",
83 "//src/python/grpcio_channelz/grpc_channelz/v1:grpc_channelz",
84 ],
85 )
86
87 py_test(
88 name = "_debug_example_test",
89 srcs = ["test/_debug_example_test.py"],
90 imports = ["."],
91 python_version = "PY3",
92 deps = [
93 ":asyncio_debug_server",
94 ":asyncio_get_stats",
95 ":asyncio_send_message",
96 ":debug_server",
97 ":get_stats",
98 ":send_message",
99 ],
100 )