forked from typedb/typedb-driver-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
70 lines (61 loc) · 1.39 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
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")
load("@phone_calls_pip//:requirements.bzl",
phone_calls_requirement = "requirement")
py_library(
name = "migrate-csv",
srcs = ["migrate_csv.py"],
deps = [
"@graknlabs_client_python//:client_python"
],
data = [
"//datasets:phone-calls-data-csv"
]
)
py_library(
name = "migrate-json",
srcs = ["migrate_json.py"],
deps = [
"@graknlabs_client_python//:client_python",
phone_calls_requirement("ijson")
],
data = [
"//datasets:phone-calls-data-json"
]
)
py_library(
name = "migrate-xml",
srcs = ["migrate_xml.py"],
deps = [
"@graknlabs_client_python//:client_python"
],
data = [
"//datasets:phone-calls-data-xml"
]
)
py_library(
name = "queries",
srcs = ["queries.py"],
deps = [
"@graknlabs_client_python//:client_python"
]
)
py_test(
name = "test",
main = "test.py",
srcs = [
"test.py",
":migrate-csv",
":migrate-json",
":migrate-xml",
":queries"
],
deps = [
"@graknlabs_client_python//:client_python",
],
data = [
"//schemas:phone-calls-schema.gql"
]
)