blob: 505b3c17c597fbf63089d77b3065977479085144 [file]
load("@bazel_skylib//rules:build_test.bzl", "build_test")
load("@rules_python//python:py_test.bzl", "py_test")
load("@rules_python//python/private:bzlmod_enabled.bzl", "BZLMOD_ENABLED") # buildifier: disable=bzl-visibility
py_test(
name = "runfiles_test",
srcs = ["runfiles_test.py"],
data = [
"//tests/support:current_build_settings",
],
env = {
"BZLMOD_ENABLED": "1" if BZLMOD_ENABLED else "0",
},
deps = ["//python/runfiles"],
)
py_test(
name = "runfiles_min_python_test",
srcs = ["runfiles_test.py"],
data = [
"//tests/support:current_build_settings",
],
env = {
"BZLMOD_ENABLED": "1" if BZLMOD_ENABLED else "0",
},
main = "runfiles_test.py",
python_version = "3.10",
deps = ["//python/runfiles"],
)
py_test(
name = "pathlib_test",
srcs = ["pathlib_test.py"],
deps = ["//python/runfiles"],
)
py_test(
name = "pathlib_min_python_test",
srcs = ["pathlib_test.py"],
main = "pathlib_test.py",
python_version = "3.10",
deps = ["//python/runfiles"],
)
build_test(
name = "publishing",
targets = [
"//python/runfiles:wheel.publish",
],
)