1load("@rules_python//python:defs.bzl", "py_library", "py_test") 2 3# gazelle:python_extension enabled 4# gazelle:python_root 5# gazelle:python_generation_mode project 6 7# gazelle:exclude bar/baz/*_excluded.py 8 9py_library( 10 name = "coarse_grained", 11 srcs = [ 12 "__init__.py", 13 "bar/__init__.py", 14 "bar/baz/__init__.py", 15 "bar/baz/hue.py", 16 "foo/__init__.py", 17 ], 18 visibility = ["//:__subpackages__"], 19 deps = ["@root_pip_deps//rootboto3"], 20) 21 22py_test( 23 name = "coarse_grained_test", 24 srcs = [ 25 "bar/bar_test.py", 26 "foo/bar/bar_test.py", 27 ], 28) 29