forked from google/jaxite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE
68 lines (53 loc) · 2 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
""" Jaxite bazel workspace """
workspace(name = "jaxite")
load(
"@bazel_tools//tools/build_defs/repo:git.bzl",
"new_git_repository",
)
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
# provides the `license` rule, which is required because gentbl_rule implicitly
# depends upon the target '//:license'. How bizarre.
http_archive(
name = "rules_license",
sha256 = "6157e1e68378532d0241ecd15d3c45f6e5cfd98fc10846045509fb2a7cc9e381",
urls = [
"https://github.com/bazelbuild/rules_license/releases/download/0.0.4/rules_license-0.0.4.tar.gz",
],
)
http_archive(
name = "bazel_skylib",
sha256 = "74d544d96f4a5bb630d465ca8bbcfe231e3594e5aae57e1edbf17a6eb3ca2506",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
],
)
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
bazel_skylib_workspace()
new_git_repository(
name = "com_google_absl_py",
commit = "127c98870edf5f03395ce9cf886266fa5f24455e", # v1.4.0
remote = "https://github.com/abseil/abseil-py",
)
# Python interpreter and pypi dependencies
new_git_repository(
name = "rules_python",
commit = "9ffb1ecd9b4e46d2a0bca838ac80d7128a352f9f", # v0.23.1
remote = "https://github.com/bazelbuild/rules_python.git",
)
load("@rules_python//python:repositories.bzl", "python_register_toolchains")
python_register_toolchains(
name = "python3_11",
# Available versions are listed at
# https://github.com/bazelbuild/rules_python/blob/main/python/versions.bzl
python_version = "3.11",
)
load("@python3_11//:defs.bzl", "interpreter")
load("@rules_python//python:pip.bzl", "pip_parse")
pip_parse(
name = "jaxite_deps",
python_interpreter_target = interpreter,
requirements_lock = "//:requirements_dev.txt",
)
load("@jaxite_deps//:requirements.bzl", "install_deps")
install_deps()