File: BUILD

package info (click to toggle)
bazel-bootstrap 3.5.1%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 82,232 kB
  • sloc: java: 699,320; sh: 50,568; cpp: 34,885; python: 11,961; xml: 295; objc: 269; ansic: 106; makefile: 95; ruby: 3
file content (50 lines) | stat: -rwxr-xr-x 1,151 bytes parent folder | download
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
load("//tools/python:private/defs.bzl", "py_test")
load(":utils.bzl", "expand_pyversion_template")

package(default_visibility = ["//visibility:public"])

filegroup(
    name = "srcs",
    srcs = glob(["**"]) + [
        "//tools/python/runfiles:srcs",
    ],
)

filegroup(
    name = "embedded_tools",
    srcs = glob(
        ["**"],
        exclude = ["private/version.bzl"],
    ) + [
        "//tools/python/runfiles:embedded_tools",
    ],
    visibility = ["//tools:__pkg__"],
)

test_suite(
    name = "all_windows_tests",
    tests = [
        "//tools/python/runfiles:all_windows_tests",
    ],
    visibility = ["//tools:__pkg__"],
)

expand_pyversion_template(
    name = "_generate_wrappers",
    out2 = ":py2wrapper.sh",
    out2_nonstrict = ":py2wrapper_nonstrict.sh",
    out3 = ":py3wrapper.sh",
    out3_nonstrict = ":py3wrapper_nonstrict.sh",
    template = "pywrapper_template.txt",
    visibility = ["//visibility:private"],
)

py_test(
    name = "pywrapper_test",
    srcs = ["pywrapper_test.py"],
    data = [
        ":py2wrapper.sh",
        ":py2wrapper_nonstrict.sh",
    ],
    deps = ["//src/test/py/bazel:test_base"],
)