1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# begin:github_only
= +
# end:github_only
# begin:google_only
#
# load("@rules_python//python:py_test.bzl", "py_test")
#
# def pyproto_test_wrapper(name):
# src = name + "_wrapper.py"
# py_test(
# name = name,
# srcs = [src],
# main = src,
# deps = [
# "//third_party/py/google/protobuf/internal:" + name + "_for_deps",
# "//third_party/py/google/protobuf:use_upb_protos",
# ],
# target_compatible_with = select({
# "@platforms//os:windows": ["@platforms//:incompatible"],
# "//conditions:default": [],
# }),
# )
#
# end:google_only