-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathBUILD.bazel
More file actions
78 lines (68 loc) · 2.02 KB
/
BUILD.bazel
File metadata and controls
78 lines (68 loc) · 2.02 KB
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
load("@rules_python//python:defs.bzl", "py_binary")
load("@rules_python//python:pip.bzl", "compile_pip_requirements")
load("@vendor-json-repo-pip//:requirements.bzl", "requirement")
load("//:test_utils.bzl", "vendordep_check_test")
# bazel run //:requirements.update
compile_pip_requirements(
name = "requirements",
extra_args = ["--allow-unsafe"],
requirements_in = "requirements.txt",
requirements_txt = "requirements_lock.txt",
)
py_binary(
name = "check",
srcs = ["check.py"],
visibility = ["//visibility:public"],
deps = [
requirement("pyelftools"),
requirement("pefile"),
],
)
py_binary(
name = "add_vendordep",
srcs = ["add_vendordep.py"],
)
# Change this for local testing only.
cache_directory = None
YEAR_2024_FILES = glob(["2024/*.json"])
[vendordep_check_test(
allowable_errors = 1,
allowable_warnings = None,
cache_directory = cache_directory,
vendor_file = f,
) for f in YEAR_2024_FILES]
YEAR_2025BETA_FILES = glob(["2025beta/*.json"])
[vendordep_check_test(
allowable_errors = 0,
allowable_warnings = None,
cache_directory = cache_directory,
vendor_file = f,
) for f in YEAR_2025BETA_FILES]
YEAR_2025_FILES = glob(["2025/*.json"])
[vendordep_check_test(
allowable_errors = 0,
allowable_warnings = None,
cache_directory = cache_directory,
vendor_file = f,
) for f in YEAR_2025_FILES]
YEAR_2026BETA_FILES = glob(["2026beta/*.json"])
[vendordep_check_test(
allowable_errors = 0,
allowable_warnings = None,
cache_directory = cache_directory,
vendor_file = f,
) for f in YEAR_2026BETA_FILES]
YEAR_2026_FILES = glob(["2026/*.json"])
[vendordep_check_test(
allowable_errors = 0,
allowable_warnings = None,
cache_directory = cache_directory,
vendor_file = f,
) for f in YEAR_2026_FILES]
YEAR_2027ALPHA1_FILES = glob(["2027_alpha1/*.json"])
[vendordep_check_test(
allowable_errors = 0,
allowable_warnings = None,
cache_directory = cache_directory,
vendor_file = f,
) for f in YEAR_2027ALPHA1_FILES]