xref: /aosp_15_r20/external/bazelbuild-rules_python/tests/runfiles/BUILD.bazel (revision 60517a1edbc8ecf509223e9af94a7adec7d736b8)
1load("@bazel_skylib//rules:build_test.bzl", "build_test")
2load("@rules_python//python:py_test.bzl", "py_test")
3load("@rules_python//python/private:bzlmod_enabled.bzl", "BZLMOD_ENABLED")  # buildifier: disable=bzl-visibility
4
5py_test(
6    name = "runfiles_test",
7    srcs = ["runfiles_test.py"],
8    env = {
9        "BZLMOD_ENABLED": "1" if BZLMOD_ENABLED else "0",
10    },
11    deps = ["//python/runfiles"],
12)
13
14build_test(
15    name = "publishing",
16    targets = [
17        "//python/runfiles:wheel.publish",
18    ],
19)
20