Remove BUILD.bazel files from beta code elements

Beta code elements are going to get deprecated and
Bazel support is much newer, so Bazel users are
not supposed to accidentally depend on beta code
elements.  Preventing Bazel from building and
including beta code elements makes our tests pass
without depending on beta in grpcio target and
helps avoid including that dependency accidentally
if you are using Bazel.
pull/17268/head
Mehrdad Afshari 6 years ago
parent 107539c0d7
commit e69c1b960f
  1. 58
      src/python/grpcio/grpc/beta/BUILD.bazel
  2. 75
      src/python/grpcio_tests/tests/unit/beta/BUILD.bazel

@ -1,58 +0,0 @@
load("@grpc_python_dependencies//:requirements.bzl", "requirement")
package(default_visibility = ["//visibility:public"])
py_library(
name = "beta",
srcs = ["__init__.py",],
deps = [
":client_adaptations",
":metadata",
":server_adaptations",
":implementations",
":interfaces",
":utilities",
],
)
py_library(
name = "client_adaptations",
srcs = ["_client_adaptations.py"],
imports=["../../",]
)
py_library(
name = "metadata",
srcs = ["_metadata.py"],
)
py_library(
name = "server_adaptations",
srcs = ["_server_adaptations.py"],
imports=["../../",],
)
py_library(
name = "implementations",
srcs = ["implementations.py"],
imports=["../../",],
)
py_library(
name = "interfaces",
srcs = ["interfaces.py"],
deps = [
requirement("six"),
],
imports=["../../",],
)
py_library(
name = "utilities",
srcs = ["utilities.py"],
deps = [
":implementations",
":interfaces",
"//src/python/grpcio/grpc/framework/foundation",
],
)

@ -1,75 +0,0 @@
load("@grpc_python_dependencies//:requirements.bzl", "requirement")
package(default_visibility = ["//visibility:public"])
py_library(
name = "test_utilities",
srcs = ["test_utilities.py"],
deps = [
"//src/python/grpcio/grpc:grpcio",
],
)
py_test(
name = "_beta_features_test",
srcs = ["_beta_features_test.py"],
main = "_beta_features_test.py",
size = "small",
deps = [
"//src/python/grpcio/grpc:grpcio",
"//src/python/grpcio_tests/tests/unit:resources",
"//src/python/grpcio_tests/tests/unit/framework/common",
":test_utilities",
],
imports=["../../../",],
)
py_test(
name = "_connectivity_channel_test",
srcs = ["_connectivity_channel_test.py"],
main = "_connectivity_channel_test.py",
size = "small",
deps = [
"//src/python/grpcio/grpc:grpcio",
],
)
# TODO(ghostwriternr): To be added later.
#py_test(
# name = "_implementations_test",
# srcs = ["_implementations_test.py"],
# main = "_implementations_test.py",
# size = "small",
# deps = [
# "//src/python/grpcio/grpc:grpcio",
# "//src/python/grpcio_tests/tests/unit:resources",
# requirement('oauth2client'),
# ],
# imports=["../../../",],
#)
py_test(
name = "_not_found_test",
srcs = ["_not_found_test.py"],
main = "_not_found_test.py",
size = "small",
deps = [
"//src/python/grpcio/grpc:grpcio",
"//src/python/grpcio_tests/tests/unit/framework/common",
],
imports=["../../../",],
)
py_test(
name = "_utilities_test",
srcs = ["_utilities_test.py"],
main = "_utilities_test.py",
size = "small",
deps = [
"//src/python/grpcio/grpc:grpcio",
"//src/python/grpcio_tests/tests/unit/framework/common",
],
imports=["../../../",],
)
Loading…
Cancel
Save