This repository has been archived by the owner on May 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 60
/
WORKSPACE
170 lines (145 loc) · 7.18 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
workspace(name = "io_github_tensorflow_tensorboard_plugin_example")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
# Needed as a transitive dependency of rules_webtesting below.
http_archive(
name = "bazel_skylib",
sha256 = "2b9af2de004d67725c9985540811835389b229c27874f2e15f5e319622a53a3b",
strip_prefix = "bazel-skylib-e9fc4750d427196754bebb0e2e1e38d68893490a",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/archive/e9fc4750d427196754bebb0e2e1e38d68893490a.tar.gz",
"https://github.com/bazelbuild/bazel-skylib/archive/e9fc4750d427196754bebb0e2e1e38d68893490a.tar.gz",
],
)
################################################################################
# CLOSURE RULES - Build rules and libraries for JavaScript development
#
# NOTE: SHA should match what's in TensorBoard's WORKSPACE file.
# NOTE: All the projects depended upon in this file use highly
# available redundant URLs. They are strongly recommended because
# they hedge against GitHub outages and allow Bazel's downloader
# to guarantee high performance and 99.9% reliability. That means
# practically zero build flakes on CI systems, without needing to
# configure an HTTP_PROXY.
http_archive(
name = "io_bazel_rules_closure",
sha256 = "b29a8bc2cb10513c864cb1084d6f38613ef14a143797cea0af0f91cd385f5e8c",
strip_prefix = "rules_closure-0.8.0",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_closure/archive/0.8.0.tar.gz",
"https://github.com/bazelbuild/rules_closure/archive/0.8.0.tar.gz", # 2018-08-03
],
)
load("@io_bazel_rules_closure//closure:defs.bzl", "closure_repositories")
# Inherit external repositories defined by Closure Rules.
closure_repositories(
omit_com_google_protobuf = True,
omit_com_google_protobuf_js = True,
)
################################################################################
# GO RULES - Build rules and libraries for Go development
#
# NOTE: TensorBoard does not require Go rules; they are a transitive
# dependency of rules_webtesting.
# NOTE: SHA should match what's in TensorBoard's WORKSPACE file.
# Needed as a transitive dependency of rules_webtesting below.
http_archive(
name = "bazel_gazelle",
sha256 = "6e875ab4b6bf64a38c352887760f21203ab054676d9c1b274963907e0768740d",
urls = [
# tag 0.15.0 resolves to commit c728ce9f663e2bff26361ba5978ec5c9e6816a3c (2018-10-13 00:06:11 +0200)
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/0.15.0/bazel-gazelle-0.15.0.tar.gz",
"https://github.com/bazelbuild/bazel-gazelle/releases/download/0.15.0/bazel-gazelle-0.15.0.tar.gz",
],
)
http_archive(
name = "io_bazel_rules_go",
sha256 = "b7a62250a3a73277ade0ce306d22f122365b513f5402222403e507f2f997d421",
urls = [
# tag 0.16.3 resolves to commit 01e5a9f8483167962eddd167f7689408bdeb4e76 (2018-11-28 16:28:45 -0500)
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/0.16.3/rules_go-0.16.3.tar.gz",
"https://github.com/bazelbuild/rules_go/releases/download/0.16.3/rules_go-0.16.3.tar.gz",
],
)
# Needed as a transitive dependency of some rules_webtesting targets.
load("@io_bazel_rules_go//go:def.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains()
# Needed as a transitive dependency of some rules_webtesting targets.
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
gazelle_dependencies()
################################################################################
# WEBTESTING RULES - Build rules and libraries for Go development
#
# NOTE: SHA should match what's in TensorBoard's WORKSPACE file.
# NOTE: Some external repositories are omitted because they were already
# defined by closure_repositories().
http_archive(
name = "io_bazel_rules_webtesting",
sha256 = "89f041028627d801ba3b4ea1ef2211994392d46e25c1fc3501b95d51698e4a1e",
strip_prefix = "rules_webtesting-0.2.2",
urls = [
# tag 0.2.2 resolves to commit 596d07c1f38486486969302158b9019418a5409e (2018-12-04 09:20:24 -0800)
"https://mirror.bazel.build/github.com/bazelbuild/rules_webtesting/archive/0.2.2.tar.gz",
"https://github.com/bazelbuild/rules_webtesting/archive/0.2.2.tar.gz",
],
)
load("@io_bazel_rules_webtesting//web:repositories.bzl", "browser_repositories", "web_test_repositories")
web_test_repositories(
omit_com_google_code_findbugs_jsr305 = True,
omit_com_google_code_gson = True,
omit_com_google_errorprone_error_prone_annotations = True,
omit_com_google_guava = True,
omit_junit = True,
omit_org_hamcrest_core = True,
)
################################################################################
# TENSORBOARD DEP RULES - Dependencies of TensorBoard
#
# NOTE: SHA should match what's in TensorBoard's WORKSPACE file.
# NOTE: Some external repositories are omitted because they were already
# defined by closure_repositories().
# TODO(stephanwlee): Remove this after ai_google_pair_facets move to
# third_party/workspace.bzl in tensorflow/tensorboard repo.
http_archive(
name = "ai_google_pair_facets",
sha256 = "e3f7b7b3c194c1772d16bdc8b348716c0da59a51daa03ef4503cf06c073caafc",
strip_prefix = "facets-0.2.1",
urls = [
"http://mirror.bazel.build/github.com/pair-code/facets/archive/0.2.1.tar.gz",
"https://github.com/pair-code/facets/archive/0.2.1.tar.gz",
],
)
http_archive(
name = "org_tensorflow",
sha256 = "88324ad9379eae4fdb2aefb8e0d6c7cd0dc748b44daa5cc96ffd9415705c00c3",
strip_prefix = "tensorflow-9752b117ff63f204c4975cad52b5aab5c1f5e9a9",
urls = [
"https://mirror.bazel.build/github.com/tensorflow/tensorflow/archive/9752b117ff63f204c4975cad52b5aab5c1f5e9a9.tar.gz", # 2018-04-16
"https://github.com/tensorflow/tensorflow/archive/9752b117ff63f204c4975cad52b5aab5c1f5e9a9.tar.gz",
],
)
load("@org_tensorflow//tensorflow:workspace.bzl", "tf_workspace")
tf_workspace()
################################################################################
# TENSORBOARD - Framework for visualizing machines learning
#
# NOTE: If the need should arise to patch TensorBoard's codebase, then
# git clone it to local disk and use local_repository() instead of
# http_archive(). This should be a temporary measure until a pull
# request can be merged upstream. It is an anti-pattern to
# check-in a WORKSPACE file that uses local_repository() since,
# unlike http_archive(), it isn't automated. If upstreaming a
# change takes too long, then consider checking in a change where
# http_archive() points to the forked repository.
http_archive(
name = "org_tensorflow_tensorboard",
sha256 = "e263f1ebeadaef246ebbd6d81faa02292ecf0193e5f0ecd279ee38416f2be4b3",
strip_prefix = "tensorboard-1.12.0",
urls = [
"http://mirror.bazel.build/github.com/tensorflow/tensorboard/archive/1.12.0.tar.gz",
"https://github.com/tensorflow/tensorboard/archive/1.12.0.tar.gz",
],
)
load("@org_tensorflow_tensorboard//third_party:workspace.bzl", "tensorboard_workspace")
# Inherit external repositories defined by Closure Rules.
tensorboard_workspace()