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