From 4d6dc4b67d075254f4da7feab982e960cb038500 Mon Sep 17 00:00:00 2001 From: chrislovecnm Date: Wed, 3 May 2023 14:46:13 -0600 Subject: [PATCH] feat: propagating visibility attribute 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. --- python/packaging.bzl | 1 + 1 file changed, 1 insertion(+) diff --git a/python/packaging.bzl b/python/packaging.bzl index fffd239c15..45d5c963b9 100644 --- a/python/packaging.bzl +++ b/python/packaging.bzl @@ -172,6 +172,7 @@ def py_wheel(name, twine = None, **kwargs): imports = ["."], main = twine_main, deps = [twine], + visibility = kwargs.get("visibility"), ) py_wheel_rule = _py_wheel