-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathWORKSPACE
42 lines (30 loc) · 1.19 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
workspace(name = "bazel_ipfs")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_pkg",
sha256 = "4ba8f4ab0ff85f2484287ab06c0d871dcb31cc54d439457d28fd4ae14b18450a",
url = "https://github.com/bazelbuild/rules_pkg/releases/download/0.2.4/rules_pkg-0.2.4.tar.gz",
)
#### fetch_versions' specific dependencies
http_archive(
name = "rules_python",
sha256 = "aa96a691d3a8177f3215b14b0edc9641787abaaa30363a080165d06ab65e1161",
url = "https://github.com/bazelbuild/rules_python/releases/download/0.0.1/rules_python-0.0.1.tar.gz",
)
load("@rules_python//python:repositories.bzl", "py_repositories")
py_repositories()
# Only needed if using the packaging rules.
load("@rules_python//python:pip.bzl", "pip_import", "pip_repositories")
pip_repositories()
# Create a central repo that knows about the dependencies needed for
# requirements.txt.
pip_import(
# or pip3_import
name = "fetch_versions_deps",
requirements = "//fetch_versions:requirements.txt",
)
# Load the central repo's install function from its `//:requirements.bzl` file,
# and call it.
load("@fetch_versions_deps//:requirements.bzl", "pip_install")
pip_install()
####