xref: /aosp_15_r20/external/bazelbuild-rules_python/examples/pip_repository_annotations/BUILD.bazel (revision 60517a1edbc8ecf509223e9af94a7adec7d736b8)
1load("@rules_python//python:defs.bzl", "py_test")
2load("@rules_python//python:pip.bzl", "compile_pip_requirements")
3
4exports_files(
5    glob(["data/**"]),
6    visibility = ["//visibility:public"],
7)
8
9# This rule adds a convenient way to update the requirements file.
10compile_pip_requirements(
11    name = "requirements",
12    src = "requirements.in",
13)
14
15py_test(
16    name = "pip_parse_annotations_test",
17    srcs = ["pip_repository_annotations_test.py"],
18    env = {
19        "REQUESTS_PKG_DIR": "pip_requests",
20        "WHEEL_PKG_DIR": "pip_wheel",
21    },
22    main = "pip_repository_annotations_test.py",
23    deps = [
24        "@pip_requests//:pkg",
25        "@pip_wheel//:pkg",
26        "@rules_python//python/runfiles",
27    ],
28)
29