| load("//tools/python:private/defs.bzl", "py_library", "py_test") | |
| package(default_visibility = ["//visibility:private"]) | |
| filegroup( | |
| name = "srcs", | |
| srcs = glob(["**"]), | |
| visibility = ["//tools/python:__pkg__"], | |
| ) | |
| filegroup( | |
| name = "embedded_tools", | |
| srcs = [ | |
| "BUILD.tools", | |
| "runfiles.py", | |
| ], | |
| visibility = ["//tools/python:__pkg__"], | |
| ) | |
| py_library( | |
| name = "runfiles", | |
| testonly = 1, | |
| srcs = ["runfiles.py"], | |
| ) | |
| py_test( | |
| name = "runfiles_test", | |
| srcs = ["runfiles_test.py"], | |
| visibility = ["//visibility:public"], | |
| deps = [":runfiles"], | |
| ) | |
| test_suite( | |
| name = "windows_tests", | |
| tags = [ | |
| "-no_windows", | |
| "-slow", | |
| ], | |
| ) | |
| test_suite( | |
| name = "all_windows_tests", | |
| tests = [ | |
| ":windows_tests", | |
| ], | |
| visibility = ["//tools/python:__pkg__"], | |
| ) |