• Home
Name Date Size #Lines LOC

..--

test1_default/04-Jul-2025-1510

test2_default_with_python_root/04-Jul-2025-1913

test3_injection/04-Jul-2025-2115

test4_multiple_labels/04-Jul-2025-1914

test5_none_label/04-Jul-2025-149

test6_default_label/04-Jul-2025-3222

test7_none_label_with_extra_vis/04-Jul-2025-2621

test8_multiple_python_root_dirs/04-Jul-2025-5539

test9_default_vis_with_python_vis/04-Jul-2025-5136

README.mdD04-Jul-2025933 2217

WORKSPACED04-Jul-202555 21

test.yamlD04-Jul-2025631 183

README.md

1# Directive: `python_default_visibility`
2
3This test case asserts that the `# gazelle:python_default_visibility` directive
4correctly:
5
61.  Uses the default value when `python_default_visibility` is not set.
72.  Uses the correct default value when `python_root` is set and
8    `python_default_visibility` is not set.
93.  Supports injecting `python_root`
104.  Supports multiple labels
115.  Setting the label to "NONE" removes all visibility attibutes.
126.  Setting the label to "DEFAULT" reverts to using the default.
137.  Adding `python_visibility` directive with `python_default_visibility NONE`
14    only adds the items listed by `python_visibility`.
158.  Multiple `python_root` dirs [GH #1682][gh-1682] uses correct value when
16    injecting `python_root`.
179.  Setting both `python_default_visibility` and `python_visibility` and how
18    they interact with sub-packages.
19
20
21[gh-1682]: https://github.com/bazelbuild/rules_python/issues/1682
22