feat: add public filegroups containing bzl files to allow downstream rulesets to generate docs (#443)
diff --git a/python/BUILD b/python/BUILD index b3f9e1c..a19adb2 100644 --- a/python/BUILD +++ b/python/BUILD
@@ -38,6 +38,20 @@ visibility = ["//:__pkg__"], ) +# Filegroup of bzl files that can be used by downstream rules for documentation generation +# Using a filegroup rather than bzl_library to not give a transitive dependency on Skylib +filegroup( + name = "bzl", + srcs = [ + "defs.bzl", + "packaging.bzl", + "pip.bzl", + "whl.bzl", + "private/reexports.bzl", + ], + visibility = ["//:__pkg__"], +) + # ========= Core rules ========= exports_files([
diff --git a/python/pip_install/BUILD b/python/pip_install/BUILD index bd53f5b..63ff584 100644 --- a/python/pip_install/BUILD +++ b/python/pip_install/BUILD
@@ -8,6 +8,15 @@ visibility = ["//:__pkg__"], ) +filegroup( + name = "bzl", + srcs = [ + "pip_repository.bzl", + "repositories.bzl", + ], + visibility = ["//:__pkg__"], +) + exports_files( ["pip_repository.bzl", "repositories.bzl"], visibility = ["//docs:__pkg__"],