1load("@rules_python//python:defs.bzl", "py_library", "py_test") 2 3py_library( 4 name = "pkg", 5 srcs = [ 6 "__init__.py", 7 "a.py", 8 "b.py", 9 ], 10 visibility = ["//:__subpackages__"], 11) 12 13py_test( 14 name = "test_util", 15 srcs = ["test_util.py"], 16) 17 18py_test( 19 name = "unit_test", 20 srcs = ["unit_test.py"], 21 deps = [ 22 ":pkg", 23 ":test_util", 24 ], 25) 26 27