Imported Upstream version 1.28.1
[platform/upstream/grpc.git] / src / python / grpcio / grpc / BUILD.bazel
1 package(default_visibility = ["//visibility:public"])
2
3 py_library(
4     name = "auth",
5     srcs = ["_auth.py"],
6 )
7
8 py_library(
9     name = "compression",
10     srcs = ["_compression.py"],
11 )
12
13 py_library(
14     name = "channel",
15     srcs = ["_channel.py"],
16     deps = [
17         ":common",
18         ":compression",
19         ":grpcio_metadata",
20     ],
21 )
22
23 py_library(
24     name = "common",
25     srcs = ["_common.py"],
26 )
27
28 py_library(
29     name = "grpcio_metadata",
30     srcs = ["_grpcio_metadata.py"],
31 )
32
33 py_library(
34     name = "interceptor",
35     srcs = ["_interceptor.py"],
36 )
37
38 py_library(
39     name = "plugin_wrapping",
40     srcs = ["_plugin_wrapping.py"],
41     deps = [
42         ":common",
43     ],
44 )
45
46 py_library(
47     name = "server",
48     srcs = ["_server.py"],
49     deps = [
50         ":common",
51         ":compression",
52         ":interceptor",
53     ],
54 )
55
56 py_library(
57     name = "utilities",
58     srcs = ["_utilities.py"],
59     deps = [
60         ":common",
61     ],
62 )
63
64 py_library(
65     name = "_simple_stubs",
66     srcs = ["_simple_stubs.py"],
67 )
68
69 py_library(
70     name = "grpcio",
71     srcs = ["__init__.py"],
72     data = [
73         "//:grpc",
74     ],
75     imports = ["../"],
76     deps = [
77         ":utilities",
78         ":auth",
79         ":plugin_wrapping",
80         ":channel",
81         ":interceptor",
82         ":server",
83         ":compression",
84         ":_simple_stubs",
85         "//src/python/grpcio/grpc/_cython:cygrpc",
86         "//src/python/grpcio/grpc/experimental",
87         "//src/python/grpcio/grpc/framework",
88         "@six//:six",
89     ] + select({
90         "//conditions:default": ["@enum34//:enum34"],
91         "//:python3": [],
92     }),
93 )