2
2
3
3
load ("@com_github_grpc_grpc//bazel:python_rules.bzl" , "py_proto_library" )
4
4
5
+ load ("//net/proto2/python/public:build_defs.bzl" , "py_test_multiple_proto_implementations" )
6
+
5
7
# Placeholder: load py_proto_library
6
8
# Placeholder: load py_library
7
9
load ("@pybind11_bazel//:build_defs.bzl" , "pybind_extension" )
@@ -108,7 +110,7 @@ pybind_extension(
108
110
],
109
111
)
110
112
111
- py_test (
113
+ py_test_multiple_proto_implementations (
112
114
name = "proto_enum_test" ,
113
115
srcs = ["proto_enum_test.py" ],
114
116
data = [":proto_enum_module.so" ],
@@ -117,7 +119,6 @@ py_test(
117
119
deps = [
118
120
":test_py_pb2" ,
119
121
"@com_google_absl_py//absl/testing:absltest" ,
120
- "@com_google_protobuf//:protobuf_python" ,
121
122
],
122
123
)
123
124
@@ -132,7 +133,7 @@ pybind_extension(
132
133
],
133
134
)
134
135
135
- py_test (
136
+ py_test_multiple_proto_implementations (
136
137
name = "dynamic_message_test" ,
137
138
srcs = ["dynamic_message_test.py" ],
138
139
data = [":dynamic_message_module.so" ],
@@ -161,7 +162,7 @@ pybind_extension(
161
162
],
162
163
)
163
164
164
- py_test (
165
+ py_test_multiple_proto_implementations (
165
166
name = "extension_test" ,
166
167
srcs = ["extension_test.py" ],
167
168
data = [
@@ -178,7 +179,6 @@ py_test(
178
179
":test_py_pb2" , # fixdeps: keep - Direct dependency needed in open-source version, see https://github.com/grpc/grpc/issues/22811
179
180
"@com_google_absl_py//absl/testing:absltest" ,
180
181
"@com_google_absl_py//absl/testing:parameterized" ,
181
- "@com_google_protobuf//:protobuf_python" ,
182
182
],
183
183
)
184
184
@@ -192,7 +192,7 @@ pybind_extension(
192
192
],
193
193
)
194
194
195
- py_test (
195
+ py_test_multiple_proto_implementations (
196
196
name = "message_test" ,
197
197
srcs = ["message_test.py" ],
198
198
data = [
@@ -221,7 +221,7 @@ pybind_extension(
221
221
],
222
222
)
223
223
224
- py_test (
224
+ py_test_multiple_proto_implementations (
225
225
name = "pass_by_test" ,
226
226
srcs = ["pass_by_test.py" ],
227
227
data = [":pass_by_module.so" ],
@@ -259,7 +259,7 @@ pybind_extension(
259
259
],
260
260
)
261
261
262
- py_test (
262
+ py_test_multiple_proto_implementations (
263
263
name = "wrapped_proto_module_test" ,
264
264
srcs = ["wrapped_proto_module_test.py" ],
265
265
data = [":wrapped_proto_module.so" ],
@@ -270,7 +270,6 @@ py_test(
270
270
":test_py_pb2" ,
271
271
"@com_google_absl_py//absl/testing:absltest" ,
272
272
"@com_google_absl_py//absl/testing:parameterized" ,
273
- "@com_google_protobuf//:protobuf_python" ,
274
273
],
275
274
)
276
275
@@ -285,7 +284,7 @@ pybind_extension(
285
284
],
286
285
)
287
286
288
- py_test (
287
+ py_test_multiple_proto_implementations (
289
288
name = "thread_module_test" ,
290
289
srcs = ["thread_module_test.py" ],
291
290
data = [":thread_module.so" ],
@@ -295,7 +294,6 @@ py_test(
295
294
":test_py_pb2" ,
296
295
"@com_google_absl_py//absl/testing:absltest" ,
297
296
"@com_google_absl_py//absl/testing:parameterized" ,
298
- "@com_google_protobuf//:protobuf_python" ,
299
297
],
300
298
)
301
299
@@ -308,7 +306,7 @@ pybind_extension(
308
306
],
309
307
)
310
308
311
- py_test (
309
+ py_test_multiple_proto_implementations (
312
310
name = "regression_wrappers_test" ,
313
311
srcs = ["regression_wrappers_test.py" ],
314
312
data = [":regression_wrappers_module.so" ],
0 commit comments