1load("@rules_python//python:defs.bzl", "py_binary", "py_library") 2 3py_library( 4 name = "simple_binary_with_library", 5 srcs = [ 6 "__init__.py", 7 "bar.py", 8 "foo.py", 9 ], 10 visibility = ["//:__subpackages__"], 11) 12 13# This target should be kept unmodified by Gazelle. 14py_library( 15 name = "custom", 16 srcs = [ 17 "bar.py", 18 ], 19) 20 21py_binary( 22 name = "simple_binary_with_library_bin", 23 srcs = ["__main__.py"], 24 main = "__main__.py", 25 visibility = ["//:__subpackages__"], 26 deps = [":simple_binary_with_library"], 27) 28