Skip to content

Commit

Permalink
feat: propagate visibility attribute for py_wheel publishing (bazelbu…
Browse files Browse the repository at this point in the history
…ild#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: bazelbuild#1192
  • Loading branch information
chrislovecnm authored and ianpegg-bc committed May 12, 2023
1 parent 62b05cb commit 9d79c82
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/packaging.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9d79c82

Please sign in to comment.