Debian Codegraph @

src/python/grpcio_tests/tests_aio/interop/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 load("@grpc_python_dependencies//:requirements.bzl", "requirement")
16
17 package(default_testonly = 1)
18
19 py_library(
20 name = "methods",
21 srcs = ["methods.py"],
22 imports = ["../../"],
23 deps = [
24 "//src/proto/grpc/testing:empty_py_pb2",
25 "//src/proto/grpc/testing:py_messages_proto",
26 "//src/proto/grpc/testing:py_test_proto",
27 "//src/proto/grpc/testing:test_py_pb2_grpc",
28 "//src/python/grpcio/grpc:grpcio",
29 requirement("google-auth"),
30 requirement("requests"),
31 requirement("urllib3"),
32 requirement("chardet"),
33 requirement("certifi"),
34 requirement("idna"),
35 ],
36 )
37
38 py_test(
39 name = "local_interop_test",
40 size = "small",
41 srcs = ["local_interop_test.py"],
42 imports = ["../../"],
43 python_version = "PY3",
44 deps = [
45 ":methods",
46 "//src/python/grpcio_tests/tests/interop:resources",
47 "//src/python/grpcio_tests/tests_aio/unit:_test_base",
48 "//src/python/grpcio_tests/tests_aio/unit:_test_server",
49 ],
50 )
51
52 py_binary(
53 name = "server",
54 srcs = ["server.py"],
55 imports = ["../../"],
56 python_version = "PY3",
57 deps = [
58 "//src/python/grpcio/grpc:grpcio",
59 "//src/python/grpcio_tests/tests/interop:resources",
60 "//src/python/grpcio_tests/tests/interop:server",
61 "//src/python/grpcio_tests/tests_aio/unit:_test_server",
62 ],
63 )
64
65 py_binary(
66 name = "client",
67 srcs = ["client.py"],
68 imports = ["../../"],
69 python_version = "PY3",
70 deps = [
71 ":methods",
72 "//src/python/grpcio/grpc:grpcio",
73 "//src/python/grpcio_tests/tests/interop:client_lib",
74 "//src/python/grpcio_tests/tests/interop:resources",
75 ],
76 )