1load("@rules_python//python:defs.bzl", "py_library", "py_test") 2 3py_library( 4 name = "simple_test", 5 srcs = [ 6 "__init__.py", 7 "foo.py", 8 ], 9 visibility = ["//:__subpackages__"], 10) 11 12py_test( 13 name = "simple_test_test", 14 srcs = ["__test__.py"], 15 main = "__test__.py", 16 deps = [":simple_test"], 17) 18