|
1 | 1 | module(name = "envoy_toolshed", version = "") |
2 | 2 |
|
3 | | -bazel_dep(name = "aspect_bazel_lib", version = "2.4.2") |
4 | | -bazel_dep(name = "bazel_skylib", version = "1.5.0") |
5 | | -bazel_dep(name = "rules_pkg", version = "0.7.0") |
6 | | -bazel_dep(name = "rules_python", version = "0.31.0") |
7 | | -bazel_dep(name = "rules_perl", version = "0.2.3") |
| 3 | +bazel_dep(name = "aspect_bazel_lib", version = "2.16.0") |
| 4 | +bazel_dep(name = "bazel_skylib", version = "1.7.1") |
| 5 | +bazel_dep(name = "platforms", version = "1.0.0") |
| 6 | +bazel_dep(name = "rules_foreign_cc", version = "0.14.0") |
| 7 | +bazel_dep(name = "rules_perl", version = "0.4.1") |
| 8 | +bazel_dep(name = "rules_pkg", version = "1.0.1") |
| 9 | +bazel_dep(name = "rules_python", version = "1.4.1") |
| 10 | +bazel_dep(name = "rules_shell", version = "0.6.1") |
| 11 | +bazel_dep(name = "toolchains_llvm", version = "1.4.0") |
8 | 12 | # -- bazel_dep definitions -- # |
9 | 13 |
|
10 | 14 | bazel_lib_toolchains = use_extension("@aspect_bazel_lib//lib:extensions.bzl", "toolchains") |
11 | 15 | bazel_lib_toolchains.jq() |
12 | 16 | use_repo(bazel_lib_toolchains, "jq_toolchains") |
13 | 17 |
|
| 18 | +llvm = use_extension("@toolchains_llvm//toolchain/extensions:llvm.bzl", "llvm") |
| 19 | +llvm.toolchain() |
| 20 | + |
| 21 | +use_repo(llvm, "llvm_toolchain") |
| 22 | +register_toolchains("@llvm_toolchain//:all") |
| 23 | + |
| 24 | +PYTHON_VERSIONS = [ |
| 25 | + "3.9", |
| 26 | + "3.10", |
| 27 | + "3.11", |
| 28 | + "3.12", |
| 29 | + "3.13", |
| 30 | +] |
| 31 | + |
14 | 32 | python = use_extension("@rules_python//python/extensions:python.bzl", "python") |
15 | | -python.toolchain(python_version = "3.11") |
| 33 | +[ |
| 34 | + python.toolchain( |
| 35 | + is_default = python_version == PYTHON_VERSIONS[-1], |
| 36 | + python_version = python_version, |
| 37 | + ) |
| 38 | + for python_version in PYTHON_VERSIONS |
| 39 | +] |
16 | 40 |
|
17 | 41 | pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip") |
18 | | -pip.parse( |
19 | | - hub_name = "pip3", |
20 | | - python_version = "3.11", |
21 | | - requirements_lock = "//:requirements.txt", |
22 | | -) |
23 | | -pip.parse( |
24 | | - hub_name = "website_pip3", |
25 | | - python_version = "3.11", |
26 | | - requirements_lock = "//website:requirements.txt", |
27 | | -) |
| 42 | + |
| 43 | +[ |
| 44 | + pip.parse( |
| 45 | + hub_name = "pip3", |
| 46 | + python_version = python_version, |
| 47 | + requirements_lock = "//:requirements.txt", |
| 48 | + ) |
| 49 | + for python_version in PYTHON_VERSIONS |
| 50 | +] |
| 51 | +[ |
| 52 | + pip.parse( |
| 53 | + hub_name = "website_pip3", |
| 54 | + python_version = python_version, |
| 55 | + requirements_lock = "//website:requirements.txt", |
| 56 | + ) |
| 57 | + for python_version in PYTHON_VERSIONS |
| 58 | +] |
| 59 | + |
28 | 60 | use_repo(pip, "pip3", "website_pip3") |
0 commit comments