forked from typedb/typedb-ml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE
231 lines (168 loc) · 7.62 KB
/
WORKSPACE
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
workspace(
name = "kglib"
)
########################################################################################################################
# Load Bazel Rules
########################################################################################################################
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")
# We require loading bazel_rules from the graknlabs fork, not from bazel, since we've patched the python rules to work with TensorFlow
load("//dependencies/python:dependencies.bzl", "io_bazel_rules_python")
io_bazel_rules_python()
## Only needed for PIP support:
load("@io_bazel_rules_python//python:pip.bzl", "pip_repositories", "pip3_import")
pip_repositories()
########################################################################################################################
# Load Build Tools
########################################################################################################################
load("//dependencies/graknlabs:dependencies.bzl", "graknlabs_build_tools")
graknlabs_build_tools()
########################################################################################################################
# Load Pip Distribution Requirements
########################################################################################################################
load("@graknlabs_build_tools//distribution:dependencies.bzl", "graknlabs_bazel_distribution")
graknlabs_bazel_distribution()
pip3_import(
name = "graknlabs_bazel_distribution_pip",
requirements = "@graknlabs_bazel_distribution//pip:requirements.txt",
)
load("@graknlabs_bazel_distribution_pip//:requirements.bzl", graknlabs_bazel_distribution_pip_install = "pip_install")
graknlabs_bazel_distribution_pip_install()
load("@graknlabs_bazel_distribution//common:dependencies.bzl", "bazelbuild_rules_pkg")
bazelbuild_rules_pkg()
load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
rules_pkg_dependencies()
###################################
# Load Client Python Dependencies #
###################################
load("//dependencies/graknlabs:dependencies.bzl", "graknlabs_client_python")
graknlabs_client_python()
pip3_import(
name = "graknlabs_client_python_pip",
requirements = "@graknlabs_client_python//:requirements.txt",
)
load("@graknlabs_client_python_pip//:requirements.bzl",
graknlabs_client_python_pip_install = "pip_install")
graknlabs_client_python_pip_install()
########################################################################################################################
# Load KGLIB's PyPi requirements
########################################################################################################################
# Load PyPI dependencies for Python programs
pip3_import(
name = "pypi_dependencies",
requirements = "//:requirements.txt",
)
load("@pypi_dependencies//:requirements.bzl", pip_install_kglib_requirements = "pip_install")
pip_install_kglib_requirements()
########################################################################################################################
# Load Grakn
########################################################################################################################
load("//dependencies/graknlabs:dependencies.bzl", "graknlabs_grakn_core")
graknlabs_grakn_core()
################################
# Load Grakn Labs dependencies #
################################
load(
"@graknlabs_grakn_core//dependencies/graknlabs:dependencies.bzl",
"graknlabs_graql",
"graknlabs_common",
"graknlabs_protocol",
"graknlabs_client_java",
"graknlabs_console",
"graknlabs_benchmark",
"graknlabs_grabl_tracing"
)
graknlabs_graql()
graknlabs_common()
graknlabs_protocol()
graknlabs_client_java()
graknlabs_console()
graknlabs_benchmark()
graknlabs_grabl_tracing()
load("@graknlabs_grabl_tracing//dependencies/maven:dependencies.bzl",
graknlabs_grabl_tracing_maven_dependencies="maven_dependencies")
graknlabs_grabl_tracing_maven_dependencies()
# Skip since these are already present above
#load("@graknlabs_build_tools//distribution:dependencies.bzl", "graknlabs_bazel_distribution")
#graknlabs_bazel_distribution()
###########################
# Load Bazel dependencies #
###########################
load("@graknlabs_build_tools//bazel:dependencies.bzl", "bazel_common", "bazel_deps", "bazel_toolchain")
bazel_common()
bazel_deps()
bazel_toolchain()
#################################
# Load Build Tools dependencies #
#################################
load("@graknlabs_build_tools//checkstyle:dependencies.bzl", "checkstyle_dependencies")
checkstyle_dependencies()
load("@graknlabs_build_tools//sonarcloud:dependencies.bzl", "sonarcloud_dependencies")
sonarcloud_dependencies()
load("@graknlabs_build_tools//bazel:dependencies.bzl", "bazel_rules_python")
bazel_rules_python()
pip3_import(
name = "graknlabs_build_tools_ci_pip",
requirements = "@graknlabs_build_tools//ci:requirements.txt",
)
load("@graknlabs_build_tools_ci_pip//:requirements.bzl",
graknlabs_build_tools_ci_pip_install = "pip_install")
graknlabs_build_tools_ci_pip_install()
#####################################
# Load Java dependencies from Maven #
#####################################
load("@graknlabs_grakn_core//dependencies/maven:dependencies.bzl", "maven_dependencies")
maven_dependencies()
###########################
# Load Graql dependencies #
###########################
# Load ANTLR dependencies for Bazel
load("@graknlabs_graql//dependencies/compilers:dependencies.bzl", "antlr_dependencies")
antlr_dependencies()
# Load ANTLR dependencies for ANTLR programs
load("@rules_antlr//antlr:deps.bzl", "antlr_dependencies")
antlr_dependencies()
load("@graknlabs_graql//dependencies/maven:dependencies.bzl",
graknlabs_graql_maven_dependencies = "maven_dependencies")
graknlabs_graql_maven_dependencies()
###########################
# Load Benchmark dependencies #
###########################
load("@graknlabs_benchmark//dependencies/maven:dependencies.bzl",
graknlabs_benchmark_maven_dependencies = "maven_dependencies")
graknlabs_benchmark_maven_dependencies()
#######################################
# Load compiler dependencies for GRPC #
#######################################
load("@graknlabs_build_tools//grpc:dependencies.bzl", "grpc_dependencies")
grpc_dependencies()
load("@com_github_grpc_grpc//bazel:grpc_deps.bzl",
com_github_grpc_grpc_deps = "grpc_deps")
com_github_grpc_grpc_deps()
load("@stackb_rules_proto//java:deps.bzl", "java_grpc_compile")
java_grpc_compile()
##################################
# Load Distribution dependencies #
##################################
# Skip since these are already present above
# TODO: rename the macro we load here to deploy_github_dependencies
#load("@graknlabs_bazel_distribution//github:dependencies.bzl", "github_dependencies_for_deployment")
#github_dependencies_for_deployment()
load("@graknlabs_build_tools//bazel:dependencies.bzl", "bazel_rules_docker")
bazel_rules_docker()
load("@io_bazel_rules_docker//repositories:repositories.bzl",
bazel_rules_docker_repositories = "repositories")
bazel_rules_docker_repositories()
load("@io_bazel_rules_docker//container:container.bzl", "container_pull")
container_pull(
name = "openjdk_image",
registry = "index.docker.io",
repository = "library/openjdk",
tag = "8"
)
#####################################
# Load Bazel common workspace rules #
#####################################
# TODO: Figure out why this cannot be loaded at earlier at the top of the file
load("@com_github_google_bazel_common//:workspace_defs.bzl", "google_common_workspace_rules")
google_common_workspace_rules()