Protocol Buffers - Google's data interchange format (grpc依赖)
https://developers.google.com/protocol-buffers/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
889 B
36 lines
889 B
3 years ago
|
# begin:github_only
|
||
3 years ago
|
|
||
|
def pyproto_test_wrapper(name):
|
||
|
src = name + "_wrapper.py"
|
||
|
native.py_test(
|
||
|
name = name,
|
||
|
srcs = [src],
|
||
|
legacy_create_init = False,
|
||
|
main = src,
|
||
|
data = ["@com_google_protobuf//:testdata"],
|
||
|
deps = [
|
||
3 years ago
|
"//python:_message",
|
||
3 years ago
|
"@com_google_protobuf//:python_common_test_protos",
|
||
|
"@com_google_protobuf//:python_specific_test_protos",
|
||
|
"@com_google_protobuf//:python_srcs",
|
||
|
],
|
||
|
)
|
||
|
|
||
3 years ago
|
# end:github_only
|
||
|
|
||
|
# begin:google_only
|
||
3 years ago
|
#
|
||
3 years ago
|
# def pyproto_test_wrapper(name):
|
||
|
# src = name + "_wrapper.py"
|
||
|
# native.py_test(
|
||
|
# name = name,
|
||
|
# srcs = [src],
|
||
|
# main = src,
|
||
3 years ago
|
# deps = [
|
||
|
# "//net/proto2/python/internal:" + name + "_for_deps",
|
||
|
# "//net/proto2/python/public:use_upb_protos",
|
||
|
# ],
|
||
3 years ago
|
# )
|
||
3 years ago
|
#
|
||
3 years ago
|
# end:google_only
|