Skip to content

Commit 8396af0

Browse files
aignasrickeylev
andauthored
fix: expose public attrb/ruleb bzl targets (#2682)
PR #2666 forgot to add public load targets for the attr/rule builder apis and associated build targets for docs and bzl_library. --------- Co-authored-by: Richard Levasseur <[email protected]>
1 parent 032f6aa commit 8396af0

File tree

4 files changed

+24
-0
lines changed

4 files changed

+24
-0
lines changed

docs/BUILD.bazel

+2
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,10 @@ sphinx_stardocs(
100100
"//python:py_test_bzl",
101101
"//python:repositories_bzl",
102102
"//python/api:api_bzl",
103+
"//python/api:attr_builders_bzl",
103104
"//python/api:executables_bzl",
104105
"//python/api:libraries_bzl",
106+
"//python/api:rule_builders_bzl",
105107
"//python/cc:py_cc_toolchain_bzl",
106108
"//python/cc:py_cc_toolchain_info_bzl",
107109
"//python/entry_points:py_console_script_binary_bzl",

python/api/BUILD.bazel

+12
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ bzl_library(
2525
deps = ["//python/private/api:api_bzl"],
2626
)
2727

28+
bzl_library(
29+
name = "attr_builders_bzl",
30+
srcs = ["attr_builders.bzl"],
31+
deps = ["//python/private:attr_builders_bzl"],
32+
)
33+
2834
bzl_library(
2935
name = "executables_bzl",
3036
srcs = ["executables.bzl"],
@@ -45,6 +51,12 @@ bzl_library(
4551
],
4652
)
4753

54+
bzl_library(
55+
name = "rule_builders_bzl",
56+
srcs = ["rule_builders.bzl"],
57+
deps = ["//python/private:rule_builders_bzl"],
58+
)
59+
4860
filegroup(
4961
name = "distribution",
5062
srcs = glob(["**"]),

python/api/attr_builders.bzl

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
"""Public, attribute building APIs for Python rules."""
2+
3+
load("//python/private:attr_builders.bzl", _attrb = "attrb")
4+
5+
attrb = _attrb

python/api/rule_builders.bzl

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
"""Public, rule building APIs for Python rules."""
2+
3+
load("//python/private:rule_builders.bzl", _ruleb = "ruleb")
4+
5+
ruleb = _ruleb

0 commit comments

Comments
 (0)