xref: /aosp_15_r20/external/grpc-grpc/src/python/grpcio/grpc/BUILD.bazel (revision cc02d7e222339f7a4f6ba5f422e6413f4bd931f2)
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.
14package(default_visibility = ["//visibility:public"])
15
16py_library(
17    name = "auth",
18    srcs = ["_auth.py"],
19)
20
21py_library(
22    name = "compression",
23    srcs = ["_compression.py"],
24)
25
26py_library(
27    name = "channel",
28    srcs = ["_channel.py"],
29    deps = [
30        ":common",
31        ":compression",
32        ":grpcio_metadata",
33    ],
34)
35
36py_library(
37    name = "common",
38    srcs = ["_common.py"],
39)
40
41py_library(
42    name = "grpcio_metadata",
43    srcs = ["_grpcio_metadata.py"],
44)
45
46py_library(
47    name = "interceptor",
48    srcs = ["_interceptor.py"],
49)
50
51py_library(
52    name = "plugin_wrapping",
53    srcs = ["_plugin_wrapping.py"],
54    deps = [
55        ":common",
56    ],
57)
58
59py_library(
60    name = "server",
61    srcs = ["_server.py"],
62    deps = [
63        ":common",
64        ":compression",
65        ":interceptor",
66    ],
67)
68
69py_library(
70    name = "utilities",
71    srcs = ["_utilities.py"],
72    deps = [
73        ":common",
74    ],
75)
76
77py_library(
78    name = "_simple_stubs",
79    srcs = ["_simple_stubs.py"],
80)
81
82py_library(
83    name = "aio",
84    srcs = glob(["aio/**/*.py"]),
85)
86
87py_library(
88    name = "_runtime_protos",
89    srcs = ["_runtime_protos.py"],
90)
91
92py_library(
93    name = "_typing",
94    srcs = ["_typing.py"],
95)
96
97py_library(
98    name = "_observability",
99    srcs = ["_observability.py"],
100)
101
102py_library(
103    name = "grpcio",
104    srcs = ["__init__.py"],
105    data = [
106        "//:grpc",
107    ],
108    imports = ["../"],
109    deps = [
110        ":_observability",
111        ":_runtime_protos",
112        ":_simple_stubs",
113        ":_typing",
114        ":aio",
115        ":auth",
116        ":channel",
117        ":compression",
118        ":interceptor",
119        ":plugin_wrapping",
120        ":server",
121        ":utilities",
122        "//src/python/grpcio/grpc/_cython:cygrpc",
123        "//src/python/grpcio/grpc/experimental",
124        "//src/python/grpcio/grpc/framework",
125    ],
126)
127