Debian Codegraph @

absl/logging/BUILD

raw
1 load("@rules_python//python:py_library.bzl", "py_library")
2 load("@rules_python//python:py_test.bzl", "py_test")
3 load("@rules_python//python:py_binary.bzl", "py_binary")
4
5 package(default_visibility = ["//visibility:private"])
6
7 licenses(["notice"])
8
9 py_library(
10 name = "logging",
11 srcs = ["__init__.py"],
12 srcs_version = "PY2AND3",
13 visibility = ["//visibility:public"],
14 deps = [
15 ":converter",
16 "//absl/flags",
17 ],
18 )
19
20 py_library(
21 name = "converter",
22 srcs = ["converter.py"],
23 srcs_version = "PY2AND3",
24 visibility = ["//visibility:public"],
25 )
26
27 py_test(
28 name = "tests/converter_test",
29 size = "small",
30 srcs = ["tests/converter_test.py"],
31 python_version = "PY3",
32 srcs_version = "PY3",
33 deps = [
34 ":converter",
35 ":logging",
36 "//absl/testing:absltest",
37 ],
38 )
39
40 py_test(
41 name = "tests/logging_test",
42 size = "small",
43 srcs = ["tests/logging_test.py"],
44 python_version = "PY3",
45 srcs_version = "PY3",
46 deps = [
47 ":logging",
48 "//absl/flags",
49 "//absl/testing:absltest",
50 "//absl/testing:flagsaver",
51 "//absl/testing:parameterized",
52 ],
53 )
54
55 py_test(
56 name = "tests/log_before_import_test",
57 srcs = ["tests/log_before_import_test.py"],
58 main = "tests/log_before_import_test.py",
59 python_version = "PY3",
60 srcs_version = "PY3",
61 deps = [
62 ":logging",
63 "//absl/testing:absltest",
64 ],
65 )
66
67 py_test(
68 name = "tests/verbosity_flag_test",
69 srcs = ["tests/verbosity_flag_test.py"],
70 python_version = "PY3",
71 srcs_version = "PY3",
72 deps = [
73 ":logging",
74 "//absl/flags",
75 "//absl/testing:absltest",
76 ],
77 )
78
79 py_binary(
80 name = "tests/logging_functional_test_helper",
81 testonly = 1,
82 srcs = ["tests/logging_functional_test_helper.py"],
83 python_version = "PY3",
84 srcs_version = "PY3",
85 deps = [
86 ":logging",
87 "//absl:app",
88 "//absl/flags",
89 ],
90 )
91
92 py_test(
93 name = "tests/logging_functional_test",
94 size = "large",
95 srcs = ["tests/logging_functional_test.py"],
96 data = [":tests/logging_functional_test_helper"],
97 python_version = "PY3",
98 shard_count = 50,
99 srcs_version = "PY3",
100 deps = [
101 ":logging",
102 "//absl/testing:_bazelize_command",
103 "//absl/testing:absltest",
104 "//absl/testing:parameterized",
105 ],
106 )