Merge pull request #17268 from mehrdada/remove-beta-elements-from-bazel

Remove beta module dependency from the Python Bazel package
pull/17288/head
Lidi Zheng 6 years ago committed by GitHub
commit e0d9692fa3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/python/grpcio/grpc/BUILD.bazel
  2. 58
      src/python/grpcio/grpc/beta/BUILD.bazel
  3. 1
      src/python/grpcio_tests/tests/interop/methods.py
  4. 75
      src/python/grpcio_tests/tests/unit/beta/BUILD.bazel

@ -13,7 +13,6 @@ py_library(
":interceptor",
":server",
"//src/python/grpcio/grpc/_cython:cygrpc",
"//src/python/grpcio/grpc/beta",
"//src/python/grpcio/grpc/experimental",
"//src/python/grpcio/grpc/framework",
requirement('enum34'),

@ -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",
],
)

@ -23,7 +23,6 @@ from google.auth import environment_vars as google_auth_environment_vars
from google.auth.transport import grpc as google_auth_transport_grpc
from google.auth.transport import requests as google_auth_transport_requests
import grpc
from grpc.beta import implementations
from src.proto.grpc.testing import empty_pb2
from src.proto.grpc.testing import messages_pb2

@ -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