-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathWORKSPACE
50 lines (39 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
43
44
45
46
47
48
49
50
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
# https://github.com/bazelbuild/rules_python/releases/tag/1.0.0
http_archive(
name = "rules_python",
sha256 = "4f7e2aa1eb9aa722d96498f5ef514f426c1f55161c3c9ae628c857a7128ceb07",
strip_prefix = "rules_python-1.0.0",
url = "https://github.com/bazelbuild/rules_python/releases/download/1.0.0/rules_python-1.0.0.tar.gz",
)
load("@rules_python//python:repositories.bzl", "py_repositories", "python_register_multi_toolchains")
py_repositories()
python_versions = [
"3.13",
"3.12",
"3.11",
"3.10",
"3.9",
"3.8",
]
python_register_multi_toolchains(
name = "copperhead",
default_version = python_versions[0],
python_versions = python_versions,
register_coverage_tool = True,
)
local_repository(
name = "ofiuco",
path = "../..",
)
load("@ofiuco//python:repositories.bzl", install_poetry_dependencies = "install_dependencies")
install_poetry_dependencies("copperhead_3_11", "3.11")
load("@ofiuco//python:poetry_parse.bzl", "poetry_parse")
poetry_parse(
name = "poetry_repo1",
lock = "//:poetry.lock",
)
poetry_parse(
name = "poetry_repo2",
lock = "//:poetry.lock",
)