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 = "foundation",
18    srcs = ["__init__.py"],
19    deps = [
20        ":abandonment",
21        ":callable_util",
22        ":future",
23        ":logging_pool",
24        ":stream",
25        ":stream_util",
26    ],
27)
28
29py_library(
30    name = "abandonment",
31    srcs = ["abandonment.py"],
32)
33
34py_library(
35    name = "callable_util",
36    srcs = ["callable_util.py"],
37    deps = [
38        "@six//:six",
39    ] + select({
40        "//conditions:default": ["@enum34//:enum34"],
41        "//:python3": [],
42    }),
43)
44
45py_library(
46    name = "future",
47    srcs = ["future.py"],
48    deps = [
49        "@six",
50    ],
51)
52
53py_library(
54    name = "logging_pool",
55    srcs = ["logging_pool.py"],
56    deps = select({
57        "//conditions:default": ["@futures//:futures"],
58        "//:python3": [],
59    }),
60)
61
62py_library(
63    name = "stream_util",
64    srcs = ["stream_util.py"],
65    deps = [
66        ":stream",
67    ],
68)
69
70py_library(
71    name = "stream",
72    srcs = ["stream.py"],
73    deps = [
74        "@six",
75    ],
76)
77