aboutsummaryrefslogtreecommitdiff
path: root/absl/BUILD
blob: a235e9811144c8aed788ae75435eef4c2294073d (plain)
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
85
86
87
88
89
90
91
92
93
94
licenses(["notice"])

py_library(
    name = "app",
    srcs = [
        "app.py",
    ],
    srcs_version = "PY2AND3",
    visibility = ["//visibility:public"],
    deps = [
        ":command_name",
        "//absl/flags",
        "//absl/logging",
    ],
)

py_library(
    name = "command_name",
    srcs = ["command_name.py"],
    srcs_version = "PY2AND3",
    visibility = ["//visibility:public"],
)

py_library(
    name = "_collections_abc",
    srcs = ["_collections_abc.py"],
    visibility = [":__subpackages__"],
    deps = ["@six_archive//:six"],
)

py_library(
    name = "tests/app_test_helper",
    testonly = 1,
    srcs = ["tests/app_test_helper.py"],
    srcs_version = "PY2AND3",
    deps = [
        ":app",
        "//absl/flags",
    ],
)

py_binary(
    name = "tests/app_test_helper_pure_python",
    testonly = 1,
    srcs = ["tests/app_test_helper.py"],
    main = "tests/app_test_helper.py",
    python_version = "PY3",
    srcs_version = "PY3",
    deps = [
        ":app",
        "//absl/flags",
    ],
)

py_test(
    name = "tests/app_test",
    srcs = ["tests/app_test.py"],
    data = [":tests/app_test_helper_pure_python"],
    python_version = "PY3",
    srcs_version = "PY3",
    deps = [
        ":app",
        ":tests/app_test_helper",
        "//absl/flags",
        "//absl/testing:_bazelize_command",
        "//absl/testing:absltest",
        "//absl/testing:flagsaver",
        "@mock_archive//:mock",
        "@six_archive//:six",
    ],
)

py_test(
    name = "tests/command_name_test",
    srcs = ["tests/command_name_test.py"],
    python_version = "PY3",
    srcs_version = "PY3",
    deps = [
        ":command_name",
        "//absl/testing:absltest",
        "@mock_archive//:mock",
    ],
)

py_test(
    name = "tests/python_version_test",
    srcs = ["tests/python_version_test.py"],
    python_version = "PY3",
    srcs_version = "PY3",
    deps = [
        "//absl/flags",
        "//absl/testing:absltest",
    ],
)