8000 feat: propagate visibility attribute for py_wheel publishing (#1203) · Rasrack/rules_python@e400791 · GitHub
[go: up one dir, main page]

Skip to content

Commit e400791

Browse files
authored
feat: propagate visibility attribute for py_wheel publishing (bazel-contrib#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: bazel-contrib#1192
1 parent 96b4fa1 commit e400791

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

python/packaging.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ def py_wheel(name, twine = None, **kwargs):
172172
imports = ["."],
173173
main = twine_main,
174174
deps = [twine],
175+
visibility = kwargs.get("visibility"),
175176
)
176177

177178
py_wheel_rule = _py_wheel

0 commit comments

Comments
 (0)
0