package(default_visibility = ["//visibility:public"])

py_library(
    name = "foundation",
    srcs = ["__init__.py"],
    deps = [
        ":abandonment",
        ":callable_util",
        ":future",
        ":logging_pool",
        ":stream",
        ":stream_util",
    ],
)

py_library(
    name = "abandonment",
    srcs = ["abandonment.py"],
)

py_library(
    name = "callable_util",
    srcs = ["callable_util.py"],
    deps = [
        "//external:six",
    ] + select({
        "//conditions:default": ["@enum34//:enum34"],
        "//:python3": [],
    }),
)

py_library(
    name = "future",
    srcs = ["future.py"],
    deps = [
        "//external:six",
    ],
)

py_library(
    name = "logging_pool",
    srcs = ["logging_pool.py"],
    deps = select({
        "//conditions:default": ["@futures//:futures"],
        "//:python3": [],
    }),
)

py_library(
    name = "stream_util",
    srcs = ["stream_util.py"],
    deps = [
        ":stream",
    ],
)

py_library(
    name = "stream",
    srcs = ["stream.py"],
    deps = [
        "//external:six",
    ],
)
