feat: propagate visibility attribute for py_wheel publishing (#1203) py_wheel does not propagate "visibility" attribute to the "publish" rule. The visibility attribute on py_wheel target is not propagated to the auto-generated "publish" target. This commit adds the visibility attribute. Closes: https://github.com/bazelbuild/rules_python/issues/1192
diff --git a/python/packaging.bzl b/python/packaging.bzl index fffd239..45d5c96 100644 --- a/python/packaging.bzl +++ b/python/packaging.bzl
@@ -172,6 +172,7 @@ imports = ["."], main = twine_main, deps = [twine], + visibility = kwargs.get("visibility"), ) py_wheel_rule = _py_wheel