-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE.bazel
65 lines (48 loc) · 1.93 KB
/
WORKSPACE.bazel
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
workspace(name = "com_github_hcoona_paper_transctriptions3")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
#
# Constants
#
BAZEL_SKYLIB_VERSION = "1.1.1" # 2021-09-27T17:33:49Z
BAZEL_SKYLIB_SHA256 = "c6966ec828da198c5d9adbaa94c05e3a1c7f21bd012a0b29ba8ddbccb2c93b0d"
RULES_PYTHON_TAG = "0.4.0" # 2021-09-12T22:58:33Z
RULES_PYTHON_SHA256 = "954aa89b491be4a083304a2cb838019c8b8c3720a7abb9c4cb81ac7a24230cea"
#
# Starlark libraries
#
http_archive(
name = "bazel_skylib",
sha256 = BAZEL_SKYLIB_SHA256,
urls = [
"https://github.com/bazelbuild/bazel-skylib/releases/download/{version}/bazel-skylib-{version}.tar.gz".format(version = BAZEL_SKYLIB_VERSION),
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/{version}/bazel-skylib-{version}.tar.gz".format(version = BAZEL_SKYLIB_VERSION),
],
)
http_archive(
name = "rules_python",
sha256 = RULES_PYTHON_SHA256,
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_python/releases/download/{version}/rules_python-{version}.tar.gz".format(version = RULES_PYTHON_TAG),
"https://github.com/bazelbuild/rules_python/releases/download/{version}/rules_python-{version}.tar.gz".format(version = RULES_PYTHON_TAG),
],
)
#
# Repository Rule
#
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
bazel_skylib_workspace()
#
# Python dependencies
#
# load("@rules_python//python:pip.bzl", "pip_parse")
# # Create a central repo that knows about the dependencies needed from
# # requirements.txt. The requirements.txt is generated from
# # poetry export -f requirements.txt --output requirements.txt --dev
# pip_parse(
# name = "pip_deps",
# requirements_lock = "//:requirements.txt",
# )
# # Load the starlark macro which will define your dependencies.
# load("@pip_deps//:requirements.bzl", "install_deps")
# # Call it to define repos for your requirements.
# install_deps()