forked from facebook/buck
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUCK
More file actions
56 lines (50 loc) · 1.15 KB
/
Copy pathBUCK
File metadata and controls
56 lines (50 loc) · 1.15 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
PYTHON_PROD_SRCS = glob(
["buck_parser/**/*.py"],
exclude = ["buck_parser/**/*_test.py"],
)
java_library(
name = "resources",
resources = PYTHON_PROD_SRCS,
resources_root = ".",
visibility = ["PUBLIC"],
)
python_library(
name = "buck_parser",
srcs = PYTHON_PROD_SRCS,
base_module = "",
deps = [
"//third-party/py/pathlib:pathlib",
"//third-party/py/pywatchman:pywatchman",
],
)
python_library(
name = "deterministic_set",
srcs = ["buck_parser/deterministic_set.py"],
base_module = "",
)
python_test(
name = "deterministic_set_test",
srcs = ["buck_parser/deterministic_set_test.py"],
base_module = "",
deps = [":deterministic_set"],
)
python_test(
name = "buck_test",
srcs = glob(["buck_parser/**/*_test.py"]),
base_module = "",
deps = [
":buck_parser",
"//third-party/py:typing",
"//third-party/py/pathlib:pathlib",
"//third-party/py/pywatchman:pywatchman",
],
)
# Main binary for testing.
python_binary(
name = "standalone",
base_module = "",
main_module = "buck_parser",
deps = [
":buck_parser",
],
)