-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathMODULE.bazel
More file actions
92 lines (83 loc) · 1.87 KB
/
MODULE.bazel
File metadata and controls
92 lines (83 loc) · 1.87 KB
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
module(
name = "protoc-gen-validate",
version = "1.3.0.envoy",
compatibility_level = 1,
repo_name = "com_envoyproxy_protoc_gen_validate",
bazel_compatibility = ['>=7.2.1'],
)
bazel_dep(
name = "bazel_skylib",
version = "1.8.1",
)
bazel_dep(
name = "gazelle",
version = "0.46.0",
repo_name = "bazel_gazelle",
)
bazel_dep(
name = "protobuf",
version = "33.0",
repo_name = "com_google_protobuf",
)
bazel_dep(
name = "re2",
version = "2024-07-02.bcr.1",
)
bazel_dep(
name = "rules_cc",
version = "0.2.13",
)
bazel_dep(
name = "rules_go",
version = "0.59.0",
repo_name = "io_bazel_rules_go",
)
bazel_dep(
name = "rules_java",
version = "8.16.1",
)
bazel_dep(
name = "rules_proto",
version = "7.1.0",
)
bazel_dep(
name = "rules_python",
version = "1.6.0",
)
# -- bazel_dep definitions -- #
go_sdk = use_extension("@io_bazel_rules_go//go:extensions.bzl", "go_sdk")
go_sdk.download(version = "1.24.0")
go_deps = use_extension("@bazel_gazelle//:extensions.bzl", "go_deps")
go_deps.from_file(go_mod = "//:go.mod")
use_repo(
go_deps,
"com_github_iancoleman_strcase",
"com_github_lyft_protoc_gen_star_v2",
"org_golang_google_protobuf",
"org_golang_x_net",
)
PYTHON_VERSIONS = [
"3.9",
"3.10",
"3.11",
"3.12",
"3.13",
]
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
[
python.toolchain(
is_default = python_version == PYTHON_VERSIONS[-1],
python_version = python_version,
)
for python_version in PYTHON_VERSIONS
]
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
[
pip.parse(
hub_name = "pgv_pip_deps",
python_version = python_version,
requirements_lock = "//python:requirements.txt",
)
for python_version in PYTHON_VERSIONS
]
use_repo(pip, "pgv_pip_deps")