File: pyproto_test_wrapper.bzl

package info (click to toggle)
grpc 1.51.1-8
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 78,336 kB
  • sloc: cpp: 361,873; python: 72,206; ansic: 37,787; objc: 12,434; ruby: 11,521; sh: 7,652; php: 7,615; makefile: 3,481; xml: 3,246; cs: 1,836; javascript: 1,614; java: 465; pascal: 227; awk: 132
file content (36 lines) | stat: -rw-r--r-- 944 bytes parent folder | download | duplicates (5)
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
# begin:github_only

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 = [
            "//python:_message",
            "@com_google_protobuf//:python_common_test_protos",
            "@com_google_protobuf//:python_specific_test_protos",
            "@com_google_protobuf//:python_test_srcs",
            "@com_google_protobuf//:python_srcs",
        ],
    )

# end:github_only

# begin:google_only
#
# def pyproto_test_wrapper(name):
#     src = name + "_wrapper.py"
#     native.py_test(
#         name = name,
#         srcs = [src],
#         main = src,
#         deps = [
#             "//net/proto2/python/internal:" + name + "_for_deps",
#             "//net/proto2/python/public:use_upb_protos",
#         ],
#     )
#
# end:google_only