pull/21458/head
Richard Belleville 4 years ago
parent 8f1e181189
commit 568dd00774
  1. 4
      examples/python/auth/BUILD.bazel
  2. 10
      examples/python/cancellation/BUILD.bazel
  3. 8
      examples/python/compression/BUILD.bazel
  4. 4
      examples/python/data_transmission/BUILD
  5. 8
      examples/python/debug/BUILD.bazel
  6. 10
      examples/python/errors/BUILD.bazel
  7. 12
      examples/python/multiprocessing/BUILD
  8. 4
      tools/distrib/python/grpcio_tools/BUILD.bazel

@ -33,10 +33,10 @@ py_binary(
name = "customized_auth_client",
testonly = 1,
srcs = ["customized_auth_client.py"],
python_version = "PY3",
data = [
"//examples:protos/helloworld.proto",
],
python_version = "PY3",
deps = [
":_credentials",
"//src/python/grpcio/grpc:grpcio",
@ -48,10 +48,10 @@ py_binary(
name = "customized_auth_server",
testonly = 1,
srcs = ["customized_auth_server.py"],
python_version = "PY3",
data = [
"//examples:protos/helloworld.proto",
],
python_version = "PY3",
deps = [
":_credentials",
"//src/python/grpcio/grpc:grpcio",

@ -21,11 +21,11 @@ package(default_testonly = 1)
py_binary(
name = "client",
srcs = ["client.py"],
python_version = "PY3",
srcs_version = "PY2AND3",
data = [
"hash_name.proto",
],
python_version = "PY3",
srcs_version = "PY2AND3",
deps = [
"//src/python/grpcio/grpc:grpcio",
"//tools/distrib/python/grpcio_tools:grpc_tools",
@ -36,10 +36,10 @@ py_binary(
py_library(
name = "search",
srcs = ["search.py"],
srcs_version = "PY2AND3",
data = [
"hash_name.proto",
],
srcs_version = "PY2AND3",
deps = [
"//src/python/grpcio/grpc:grpcio",
"//tools/distrib/python/grpcio_tools:grpc_tools",
@ -49,11 +49,11 @@ py_library(
py_binary(
name = "server",
srcs = ["server.py"],
python_version = "PY3",
srcs_version = "PY2AND3",
data = [
"hash_name.proto",
],
python_version = "PY3",
srcs_version = "PY2AND3",
deps = [
"//src/python/grpcio/grpc:grpcio",
"//tools/distrib/python/grpcio_tools:grpc_tools",

@ -15,11 +15,11 @@
py_binary(
name = "server",
srcs = ["server.py"],
python_version = "PY3",
srcs_version = "PY2AND3",
data = [
"//examples:protos/helloworld.proto",
],
python_version = "PY3",
srcs_version = "PY2AND3",
deps = [
"//src/python/grpcio/grpc:grpcio",
"//tools/distrib/python/grpcio_tools:grpc_tools",
@ -29,11 +29,11 @@ py_binary(
py_binary(
name = "client",
srcs = ["client.py"],
python_version = "PY3",
srcs_version = "PY2AND3",
data = [
"//examples:protos/helloworld.proto",
],
python_version = "PY3",
srcs_version = "PY2AND3",
deps = [
"//src/python/grpcio/grpc:grpcio",
"//tools/distrib/python/grpcio_tools:grpc_tools",

@ -21,7 +21,7 @@ py_binary(
"server.py",
],
data = [
"demo.proto"
"demo.proto",
],
main = "alts_server.py",
python_version = "PY3",
@ -39,7 +39,7 @@ py_binary(
"client.py",
],
data = [
"demo.proto"
"demo.proto",
],
main = "alts_client.py",
python_version = "PY3",

@ -23,8 +23,8 @@ py_binary(
],
deps = [
"//src/python/grpcio/grpc:grpcio",
"//tools/distrib/python/grpcio_tools:grpc_tools",
"//src/python/grpcio_channelz/grpc_channelz/v1:grpc_channelz",
"//tools/distrib/python/grpcio_tools:grpc_tools",
],
)
@ -32,10 +32,10 @@ py_binary(
name = "send_message",
testonly = 1,
srcs = ["send_message.py"],
python_version = "PY3",
data = [
"//examples:protos/helloworld.proto",
],
python_version = "PY3",
deps = [
"//src/python/grpcio/grpc:grpcio",
"//tools/distrib/python/grpcio_tools:grpc_tools",
@ -56,16 +56,16 @@ py_binary(
py_test(
name = "_debug_example_test",
srcs = ["test/_debug_example_test.py"],
python_version = "PY3",
data = [
"//examples:protos/helloworld.proto",
],
python_version = "PY3",
deps = [
":debug_server",
":get_stats",
":send_message",
"//src/python/grpcio/grpc:grpcio",
"//tools/distrib/python/grpcio_tools:grpc_tools",
"//src/python/grpcio_channelz/grpc_channelz/v1:grpc_channelz",
"//tools/distrib/python/grpcio_tools:grpc_tools",
],
)

@ -23,8 +23,8 @@ py_library(
],
deps = [
"//src/python/grpcio/grpc:grpcio",
"//tools/distrib/python/grpcio_tools:grpc_tools",
"//src/python/grpcio_status/grpc_status",
"//tools/distrib/python/grpcio_tools:grpc_tools",
requirement("googleapis-common-protos"),
],
)
@ -50,18 +50,18 @@ py_test(
name = "test/_error_handling_example_test",
size = "small",
srcs = ["test/_error_handling_example_test.py"],
data = [
"//examples:protos/helloworld.proto",
],
imports = [
"../../../src/python/grpcio_status",
"../../../src/python/grpcio_tests",
],
python_version = "PY3",
data = [
"//examples:protos/helloworld.proto",
],
deps = [
":client",
":server",
"//tools/distrib/python/grpcio_tools:grpc_tools",
"//src/python/grpcio_tests/tests:bazel_namespace_package_hack",
"//tools/distrib/python/grpcio_tools:grpc_tools",
],
)

@ -20,12 +20,12 @@ py_binary(
name = "client",
testonly = 1,
srcs = ["client.py"],
data = [
"prime.proto",
],
imports = ["."],
python_version = "PY3",
srcs_version = "PY3",
data = [
"prime.proto"
],
deps = [
"//src/python/grpcio/grpc:grpcio",
"//tools/distrib/python/grpcio_tools:grpc_tools",
@ -36,12 +36,12 @@ py_binary(
name = "server",
testonly = 1,
srcs = ["server.py"],
data = [
"prime.proto",
],
imports = ["."],
python_version = "PY3",
srcs_version = "PY3",
data = [
"prime.proto"
],
deps = [
"//src/python/grpcio/grpc:grpcio",
"//tools/distrib/python/grpcio_tools:grpc_tools",

@ -13,9 +13,9 @@
# limitations under the License.
package(default_visibility = [
"//examples/python:__subpackages__",
"//src/python:__subpackages__",
"//tools/distrib/python/grpcio_tools:__subpackages__",
"//examples/python:__subpackages__",
])
load("//bazel:cython_library.bzl", "pyx_library")
@ -43,11 +43,11 @@ py_library(
"grpc_tools/__init__.py",
"grpc_tools/protoc.py",
],
imports = ["."],
srcs_version = "PY2AND3",
deps = [
":cyprotoc",
"//src/python/grpcio/grpc:grpcio",
"@com_google_protobuf//:protobuf_python",
],
imports=["."],
)

Loading…
Cancel
Save