mirror of
https://github.com/php-win-ext/grpc.git
synced 2026-04-27 19:13:14 +02:00
Format all Bazel files with buildifier
This commit is contained in:
@@ -16,8 +16,8 @@ filegroup(
|
||||
name = "_credentials_files",
|
||||
testonly = 1,
|
||||
srcs = [
|
||||
"credentials/localhost.key",
|
||||
"credentials/localhost.crt",
|
||||
"credentials/localhost.key",
|
||||
"credentials/root.crt",
|
||||
],
|
||||
)
|
||||
@@ -33,37 +33,37 @@ py_binary(
|
||||
name = "customized_auth_client",
|
||||
testonly = 1,
|
||||
srcs = ["customized_auth_client.py"],
|
||||
python_version = "PY3",
|
||||
deps = [
|
||||
":_credentials",
|
||||
"//src/python/grpcio/grpc:grpcio",
|
||||
"//examples:helloworld_py_pb2",
|
||||
"//examples:helloworld_py_pb2_grpc",
|
||||
"//src/python/grpcio/grpc:grpcio",
|
||||
],
|
||||
python_version = "PY3",
|
||||
)
|
||||
|
||||
py_binary(
|
||||
name = "customized_auth_server",
|
||||
testonly = 1,
|
||||
srcs = ["customized_auth_server.py"],
|
||||
python_version = "PY3",
|
||||
deps = [
|
||||
":_credentials",
|
||||
"//src/python/grpcio/grpc:grpcio",
|
||||
"//examples:helloworld_py_pb2",
|
||||
"//examples:helloworld_py_pb2_grpc",
|
||||
"//src/python/grpcio/grpc:grpcio",
|
||||
],
|
||||
python_version = "PY3",
|
||||
)
|
||||
|
||||
py_test(
|
||||
name = "_auth_example_test",
|
||||
srcs = ["test/_auth_example_test.py"],
|
||||
python_version = "PY3",
|
||||
deps = [
|
||||
"//src/python/grpcio/grpc:grpcio",
|
||||
"//examples:helloworld_py_pb2",
|
||||
":_credentials",
|
||||
":customized_auth_client",
|
||||
":customized_auth_server",
|
||||
":_credentials",
|
||||
"//examples:helloworld_py_pb2",
|
||||
"//src/python/grpcio/grpc:grpcio",
|
||||
],
|
||||
python_version = "PY3",
|
||||
)
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
load("@grpc_python_dependencies//:requirements.bzl", "requirement")
|
||||
load("//bazel:python_rules.bzl", "py_proto_library", "py_grpc_library")
|
||||
load("//bazel:python_rules.bzl", "py_grpc_library", "py_proto_library")
|
||||
|
||||
package(default_testonly = 1)
|
||||
|
||||
@@ -38,14 +38,14 @@ py_grpc_library(
|
||||
py_binary(
|
||||
name = "client",
|
||||
srcs = ["client.py"],
|
||||
python_version = "PY3",
|
||||
srcs_version = "PY2AND3",
|
||||
deps = [
|
||||
"//src/python/grpcio/grpc:grpcio",
|
||||
":hash_name_py_pb2",
|
||||
":hash_name_py_pb2_grpc",
|
||||
"//external:six"
|
||||
"//external:six",
|
||||
"//src/python/grpcio/grpc:grpcio",
|
||||
],
|
||||
srcs_version = "PY2AND3",
|
||||
python_version = "PY3",
|
||||
)
|
||||
|
||||
py_library(
|
||||
@@ -60,6 +60,8 @@ py_library(
|
||||
py_binary(
|
||||
name = "server",
|
||||
srcs = ["server.py"],
|
||||
python_version = "PY3",
|
||||
srcs_version = "PY2AND3",
|
||||
deps = [
|
||||
"//src/python/grpcio/grpc:grpcio",
|
||||
":hash_name_py_pb2",
|
||||
@@ -68,17 +70,15 @@ py_binary(
|
||||
"//conditions:default": ["@futures//:futures"],
|
||||
"//:python3": [],
|
||||
}),
|
||||
srcs_version = "PY2AND3",
|
||||
python_version = "PY3",
|
||||
)
|
||||
|
||||
py_test(
|
||||
name = "test/_cancellation_example_test",
|
||||
size = "small",
|
||||
srcs = ["test/_cancellation_example_test.py"],
|
||||
data = [
|
||||
":client",
|
||||
":server"
|
||||
":server",
|
||||
],
|
||||
size = "small",
|
||||
python_version = "PY3",
|
||||
)
|
||||
|
||||
@@ -15,35 +15,35 @@
|
||||
py_binary(
|
||||
name = "server",
|
||||
srcs = ["server.py"],
|
||||
python_version = "PY3",
|
||||
srcs_version = "PY2AND3",
|
||||
deps = [
|
||||
"//src/python/grpcio/grpc:grpcio",
|
||||
"//examples:helloworld_py_pb2",
|
||||
"//examples:helloworld_py_pb2_grpc",
|
||||
"//src/python/grpcio/grpc:grpcio",
|
||||
],
|
||||
srcs_version = "PY2AND3",
|
||||
python_version = "PY3",
|
||||
)
|
||||
|
||||
py_binary(
|
||||
name = "client",
|
||||
srcs = ["client.py"],
|
||||
python_version = "PY3",
|
||||
srcs_version = "PY2AND3",
|
||||
deps = [
|
||||
"//src/python/grpcio/grpc:grpcio",
|
||||
"//examples:helloworld_py_pb2",
|
||||
"//examples:helloworld_py_pb2_grpc",
|
||||
"//src/python/grpcio/grpc:grpcio",
|
||||
],
|
||||
srcs_version = "PY2AND3",
|
||||
python_version = "PY3",
|
||||
)
|
||||
|
||||
py_test(
|
||||
name = "test/compression_example_test",
|
||||
srcs = ["test/compression_example_test.py"],
|
||||
srcs_version = "PY2AND3",
|
||||
data = [
|
||||
":client",
|
||||
":server",
|
||||
],
|
||||
size = "small",
|
||||
srcs = ["test/compression_example_test.py"],
|
||||
data = [
|
||||
":client",
|
||||
":server",
|
||||
],
|
||||
python_version = "PY3",
|
||||
srcs_version = "PY2AND3",
|
||||
)
|
||||
|
||||
@@ -19,10 +19,10 @@ py_binary(
|
||||
testonly = 1,
|
||||
srcs = ["debug_server.py"],
|
||||
deps = [
|
||||
"//src/python/grpcio/grpc:grpcio",
|
||||
"//src/python/grpcio_channelz/grpc_channelz/v1:grpc_channelz",
|
||||
"//examples:helloworld_py_pb2",
|
||||
"//examples:helloworld_py_pb2_grpc",
|
||||
"//src/python/grpcio/grpc:grpcio",
|
||||
"//src/python/grpcio_channelz/grpc_channelz/v1:grpc_channelz",
|
||||
],
|
||||
)
|
||||
|
||||
@@ -30,36 +30,36 @@ py_binary(
|
||||
name = "send_message",
|
||||
testonly = 1,
|
||||
srcs = ["send_message.py"],
|
||||
python_version = "PY3",
|
||||
deps = [
|
||||
"//src/python/grpcio/grpc:grpcio",
|
||||
"//examples:helloworld_py_pb2",
|
||||
"//examples:helloworld_py_pb2_grpc",
|
||||
"//src/python/grpcio/grpc:grpcio",
|
||||
],
|
||||
python_version = "PY3",
|
||||
)
|
||||
|
||||
py_binary(
|
||||
name = "get_stats",
|
||||
testonly = 1,
|
||||
srcs = ["get_stats.py"],
|
||||
python_version = "PY3",
|
||||
deps = [
|
||||
"//src/python/grpcio/grpc:grpcio",
|
||||
"//src/python/grpcio_channelz/grpc_channelz/v1:grpc_channelz",
|
||||
],
|
||||
python_version = "PY3",
|
||||
)
|
||||
|
||||
py_test(
|
||||
name = "_debug_example_test",
|
||||
srcs = ["test/_debug_example_test.py"],
|
||||
python_version = "PY3",
|
||||
deps = [
|
||||
"//src/python/grpcio/grpc:grpcio",
|
||||
"//src/python/grpcio_channelz/grpc_channelz/v1:grpc_channelz",
|
||||
":debug_server",
|
||||
":get_stats",
|
||||
":send_message",
|
||||
"//examples:helloworld_py_pb2",
|
||||
"//examples:helloworld_py_pb2_grpc",
|
||||
":debug_server",
|
||||
":send_message",
|
||||
":get_stats",
|
||||
"//src/python/grpcio/grpc:grpcio",
|
||||
"//src/python/grpcio_channelz/grpc_channelz/v1:grpc_channelz",
|
||||
],
|
||||
python_version = "PY3",
|
||||
)
|
||||
|
||||
@@ -19,11 +19,11 @@ py_library(
|
||||
testonly = 1,
|
||||
srcs = ["client.py"],
|
||||
deps = [
|
||||
"//src/python/grpcio/grpc:grpcio",
|
||||
"//src/python/grpcio_status/grpc_status:grpc_status",
|
||||
"//examples:helloworld_py_pb2",
|
||||
"//examples:helloworld_py_pb2_grpc",
|
||||
requirement('googleapis-common-protos'),
|
||||
"//src/python/grpcio/grpc:grpcio",
|
||||
"//src/python/grpcio_status/grpc_status",
|
||||
requirement("googleapis-common-protos"),
|
||||
],
|
||||
)
|
||||
|
||||
@@ -44,16 +44,16 @@ py_library(
|
||||
|
||||
py_test(
|
||||
name = "test/_error_handling_example_test",
|
||||
srcs = ["test/_error_handling_example_test.py"],
|
||||
deps = [
|
||||
":client",
|
||||
":server",
|
||||
"//src/python/grpcio_tests/tests:bazel_namespace_package_hack",
|
||||
],
|
||||
size = "small",
|
||||
srcs = ["test/_error_handling_example_test.py"],
|
||||
imports = [
|
||||
"../../../src/python/grpcio_status",
|
||||
"../../../src/python/grpcio_tests",
|
||||
],
|
||||
python_version = "PY3",
|
||||
deps = [
|
||||
":client",
|
||||
":server",
|
||||
"//src/python/grpcio_tests/tests:bazel_namespace_package_hack",
|
||||
],
|
||||
)
|
||||
|
||||
@@ -14,11 +14,11 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
load("//bazel:python_rules.bzl", "py_proto_library", "py_grpc_library")
|
||||
load("//bazel:python_rules.bzl", "py_grpc_library", "py_proto_library")
|
||||
|
||||
proto_library(
|
||||
name = "prime_proto",
|
||||
srcs = ["prime.proto"]
|
||||
srcs = ["prime.proto"],
|
||||
)
|
||||
|
||||
py_proto_library(
|
||||
@@ -36,19 +36,21 @@ py_binary(
|
||||
name = "client",
|
||||
testonly = 1,
|
||||
srcs = ["client.py"],
|
||||
python_version = "PY3",
|
||||
srcs_version = "PY3",
|
||||
deps = [
|
||||
"//src/python/grpcio/grpc:grpcio",
|
||||
":prime_proto_pb2",
|
||||
":prime_proto_pb2_grpc",
|
||||
"//src/python/grpcio/grpc:grpcio",
|
||||
],
|
||||
srcs_version = "PY3",
|
||||
python_version = "PY3",
|
||||
)
|
||||
|
||||
py_binary(
|
||||
name = "server",
|
||||
testonly = 1,
|
||||
srcs = ["server.py"],
|
||||
python_version = "PY3",
|
||||
srcs_version = "PY3",
|
||||
deps = [
|
||||
"//src/python/grpcio/grpc:grpcio",
|
||||
":prime_proto_pb2",
|
||||
@@ -57,17 +59,15 @@ py_binary(
|
||||
"//conditions:default": ["@futures//:futures"],
|
||||
"//:python3": [],
|
||||
}),
|
||||
srcs_version = "PY3",
|
||||
python_version = "PY3",
|
||||
)
|
||||
|
||||
py_test(
|
||||
name = "test/_multiprocessing_example_test",
|
||||
size = "small",
|
||||
srcs = ["test/_multiprocessing_example_test.py"],
|
||||
data = [
|
||||
":client",
|
||||
":server"
|
||||
":server",
|
||||
],
|
||||
size = "small",
|
||||
python_version = "PY3",
|
||||
)
|
||||
|
||||
@@ -19,16 +19,16 @@ py_library(
|
||||
testonly = 1,
|
||||
srcs = ["wait_for_ready_example.py"],
|
||||
deps = [
|
||||
"//src/python/grpcio/grpc:grpcio",
|
||||
"//examples:helloworld_py_pb2",
|
||||
"//examples:helloworld_py_pb2_grpc",
|
||||
"//src/python/grpcio/grpc:grpcio",
|
||||
],
|
||||
)
|
||||
|
||||
py_test(
|
||||
name = "test/_wait_for_ready_example_test",
|
||||
srcs = ["test/_wait_for_ready_example_test.py"],
|
||||
deps = [":wait_for_ready_example",],
|
||||
size = "small",
|
||||
srcs = ["test/_wait_for_ready_example_test.py"],
|
||||
python_version = "PY3",
|
||||
deps = [":wait_for_ready_example"],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user