File: BUILD

package info (click to toggle)
protobuf 3.25.4-2
  • links: PTS
  • area: main
  • in suites:
  • size: 45,944 kB
  • sloc: cpp: 204,199; java: 87,622; ansic: 81,204; objc: 58,434; cs: 27,303; python: 22,799; php: 11,340; ruby: 8,637; pascal: 3,325; xml: 2,333; sh: 1,331; makefile: 538; lisp: 86; awk: 17
file content (84 lines) | stat: -rw-r--r-- 2,178 bytes parent folder | download | duplicates (2)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Copyright (c) 2009-2021, Google LLC
# All rights reserved.
#
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file or at
# https://developers.google.com/open-source/licenses/bsd

load(":pyproto_test_wrapper.bzl", "pyproto_test_wrapper")
# begin:github_only
load("@pip_deps//:requirements.bzl", "requirement")
# end:github_only

# begin:google_only
# package(default_applicable_licenses = ["//upb:license"])
# end:google_only

licenses(["notice"])

pyproto_test_wrapper(name = "descriptor_database_test")

pyproto_test_wrapper(name = "descriptor_pool_test")

pyproto_test_wrapper(name = "descriptor_test")

# begin:github_only
pyproto_test_wrapper(name = "generator_test")
# end:github_only

pyproto_test_wrapper(name = "json_format_test")

pyproto_test_wrapper(name = "keywords_test")

pyproto_test_wrapper(name = "message_factory_test")

# begin:github_only
# This target has different dependencies and fails when using the wrapper
# TODO: Move this to using pyproto_test_wrapper
py_test(
    name = "numpy_test",
    srcs = ["numpy_test_wrapper.py"],
    main = "numpy_test_wrapper.py",
    deps = [
      requirement("numpy"),
      "//python/google/protobuf/internal/numpy:numpy_test",
      "//python:_message",
    ],
    target_compatible_with = select({
      "@system_python//:supported": [],
      "//conditions:default": ["@platforms//:incompatible"],
    }),
)
# end:github_only

# begin:google_only
# pyproto_test_wrapper(name = "numpy_test")
# end:google_only

pyproto_test_wrapper(name = "proto_builder_test")

pyproto_test_wrapper(name = "service_reflection_test")

pyproto_test_wrapper(name = "symbol_database_test")

pyproto_test_wrapper(name = "text_encoding_test")

pyproto_test_wrapper(name = "message_test")

pyproto_test_wrapper(name = "reflection_test")

pyproto_test_wrapper(name = "text_format_test")

pyproto_test_wrapper(name = "unknown_fields_test")

pyproto_test_wrapper(name = "well_known_types_test")

pyproto_test_wrapper(name = "wire_format_test")

filegroup(
    name = "test_files",
    srcs = glob(["*.py"]),
    visibility = [
        "//python/dist:__pkg__",  # Scheuklappen: keep
    ],
)