forked from typedb/typedb-driver-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD
86 lines (76 loc) · 1.69 KB
/
BUILD
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
exports_files(["requirements.txt"])
load("@rules_python//python:python.bzl", "py_library", "py_test")
load("@graknlabs_client_python_pip//:requirements.bzl",
graknlabs_client_python_requirement = "requirement")
py_library(
name = "migration",
srcs = ["src/migration.py"],
deps = [
"@graknlabs_client_python//:client_python"
],
data = [
"//datasets:tube-network-data-routes",
"//datasets:tube-network-data-timetables"
]
)
py_library(
name = "statistics",
srcs = ["src/statistics.py"],
deps = [
"@graknlabs_client_python//:client_python"
]
)
py_library(
name = "journey-planner",
srcs = ["src/journey_planner.py"],
deps = [
"@graknlabs_client_python//:client_python"
]
)
#py_library(
# name = "app",
# srcs = ["src/app.py"],
# deps = [
# "@graknlabs_client_python//:client_python"
# ]
#)
py_test(
name = "test",
main = "test.py",
srcs = [
"test.py",
":migration",
":statistics",
":journey-planner",
":app"
],
timeout = "long",
deps = [
"@graknlabs_client_python//:client_python",
],
data = [
"//schemas:tube-network-schema.gql"
]
)
py_test(
name = "test-migration",
main = "test_migration.py",
srcs = [
"test_migration.py",
":migration",
],
deps = [
"@graknlabs_client_python//:client_python",
],
data = [
"//schemas:tube-network-schema.gql"
]
)
py_binary(
name = "app",
srcs = ["src/app.py"],
# data = [":transform"], # a cc_binary which we invoke at run time
deps = [
"@graknlabs_client_python//:client_python"
]
)