xref: /aosp_15_r20/external/bazelbuild-rules_python/examples/bzlmod/runfiles/BUILD.bazel (revision 60517a1edbc8ecf509223e9af94a7adec7d736b8)
1load("@rules_python//python:defs.bzl", "py_test")
2
3py_test(
4    name = "runfiles_test",
5    srcs = ["runfiles_test.py"],
6    data = [
7        "data/data.txt",
8        "@our_other_module//other_module/pkg:data/data.txt",
9    ],
10    env = {
11        "DATA_RLOCATIONPATH": "$(rlocationpath data/data.txt)",
12        "OTHER_MODULE_DATA_RLOCATIONPATH": "$(rlocationpath @our_other_module//other_module/pkg:data/data.txt)",
13    },
14    deps = [
15        "@our_other_module//other_module/pkg:lib",
16        "@rules_python//python/runfiles",
17    ],
18)
19