xref: /aosp_15_r20/external/bazelbuild-rules_testing/WORKSPACE.bazel (revision d605057434dcabba796c020773aab68d9790ff9f)
1workspace(name = "rules_testing")
2
3load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
4load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
5
6maybe(
7    http_archive,
8    name = "bazel_skylib",
9    sha256 = "74d544d96f4a5bb630d465ca8bbcfe231e3594e5aae57e1edbf17a6eb3ca2506",
10    urls = [
11        "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
12        "https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
13    ],
14)
15
16http_archive(
17    name = "io_bazel_stardoc",
18    sha256 = "3fd8fec4ddec3c670bd810904e2e33170bedfe12f90adf943508184be458c8bb",
19    urls = [
20        "https://mirror.bazel.build/github.com/bazelbuild/stardoc/releases/download/0.5.3/stardoc-0.5.3.tar.gz",
21        "https://github.com/bazelbuild/stardoc/releases/download/0.5.3/stardoc-0.5.3.tar.gz",
22    ],
23)
24
25http_archive(
26    name = "rules_license",
27    sha256 = "6157e1e68378532d0241ecd15d3c45f6e5cfd98fc10846045509fb2a7cc9e381",
28    urls = [
29        "https://github.com/bazelbuild/rules_license/releases/download/0.0.4/rules_license-0.0.4.tar.gz",
30        "https://mirror.bazel.build/github.com/bazelbuild/rules_license/releases/download/0.0.4/rules_license-0.0.4.tar.gz",
31    ],
32)
33
34load("@io_bazel_stardoc//:setup.bzl", "stardoc_repositories")
35
36stardoc_repositories()
37
38http_archive(
39    name = "rules_python",
40    sha256 = "a644da969b6824cc87f8fe7b18101a8a6c57da5db39caa6566ec6109f37d2141",
41    strip_prefix = "rules_python-0.20.0",
42    url = "https://github.com/bazelbuild/rules_python/releases/download/0.20.0/rules_python-0.20.0.tar.gz",
43)
44
45load("@rules_python//python:repositories.bzl", "python_register_toolchains")
46
47python_register_toolchains(
48    name = "python3_11",
49    # Available versions are listed in @rules_python//python:versions.bzl.
50    # We recommend using the same version your team is already standardized on.
51    python_version = "3.11",
52)
53
54load("@python3_11//:defs.bzl", "interpreter")
55load("@rules_python//python:pip.bzl", "pip_parse")
56
57pip_parse(
58    name = "docs-pypi",
59    python_interpreter_target = interpreter,
60    requirements_lock = "//docs:requirements.txt",
61)
62
63load("@docs-pypi//:requirements.bzl", "install_deps")
64
65install_deps()
66