load("@rules_python//python:defs.bzl", "py_library") # python_visibilty directive applies to all child bazel packages. # Thus, the generated file for this package will also have vis for # //tests:__pkg__ and //bar:baz in addition to the default. # gazelle:python_visibility //tests:__subpackages__ py_library( name = "subdir", srcs = [ "__init__.py", "bar.py", ], visibility = [ "//:__subpackages__", "//bar:baz", "//tests:__pkg__", "//tests:__subpackages__", ], )