diff options
author | Chris Love <335402+chrislovecnm@users.noreply.github.com> | 2023-05-03 15:01:31 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-03 21:01:31 +0000 |
commit | e40079186ddd403cbad6a0e951363d1c5bf9238a (patch) | |
tree | 84c93a1286fdb60d72e952d7b5a2ac69ca031e26 | |
parent | 96b4fa13b9dfcf32422455931621598eb99d28f5 (diff) | |
download | bazelbuild-rules_python-e40079186ddd403cbad6a0e951363d1c5bf9238a.tar.gz |
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
-rw-r--r-- | python/packaging.bzl | 1 |
1 files changed, 1 insertions, 0 deletions
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 @@ def py_wheel(name, twine = None, **kwargs): imports = ["."], main = twine_main, deps = [twine], + visibility = kwargs.get("visibility"), ) py_wheel_rule = _py_wheel |