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