File tree Expand file tree Collapse file tree 3 files changed +40
-0
lines changed
Filter options
Expand file tree Collapse file tree 3 files changed +40
-0
lines changed
Original file line number Diff line number Diff line change @@ -33,3 +33,20 @@ filegroup(
33
33
],
34
34
visibility = ["//distro:__pkg__" ],
35
35
)
36
+
37
+ # Reexport of all bzl files used to allow downstream rules to generate docs
38
+ # without shipping with a dependency on Skylib
39
+ filegroup (
40
+ name = "bzl" ,
41
+ srcs = [
42
+ "//python/pip_install:bzl" ,
43
+ "//python:bzl" ,
44
+ # Requires Bazel 0.29 onward for public visibility of these .bzl files.
45
+ "@bazel_tools//tools/python:private/defs.bzl" ,
46
+ "@bazel_tools//tools/python:python_version.bzl" ,
47
+ "@bazel_tools//tools/python:srcs_version.bzl" ,
48
+ "@bazel_tools//tools/python:toolchain.bzl" ,
49
+ "@bazel_tools//tools/python:utils.bzl" ,
50
+ ],
51
+ visibility = ["//visibility:public" ],
52
+ )
Original file line number Diff line number Diff line change @@ -38,6 +38,20 @@ filegroup(
38
38
visibility = ["//:__pkg__" ],
39
39
)
40
40
41
+ # Filegroup of bzl files that can be used by downstream rules for documentation generation
42
+ # Using a filegroup rather than bzl_library to not give a transitive dependency on Skylib
43
+ filegroup (
44
+ name = "bzl" ,
45
+ srcs = [
46
+ "defs.bzl" ,
47
+ "packaging.bzl" ,
48
+ "pip.bzl" ,
49
+ "whl.bzl" ,
50
+ "private/reexports.bzl" ,
51
+ ],
52
+ visibility = ["//:__pkg__" ],
53
+ )
54
+
41
55
# ========= Core rules =========
42
56
43
57
exports_files ([
Original file line number Diff line number Diff line change @@ -8,6 +8,15 @@ filegroup(
8
8
visibility = ["//:__pkg__" ],
9
9
)
10
10
11
+ filegroup (
12
+ name = "bzl" ,
13
+ srcs = [
14
+ "pip_repository.bzl" ,
15
+ "repositories.bzl" ,
16
+ ],
17
+ visibility = ["//:__pkg__" ],
18
+ )
19
+
11
20
exports_files (
12
21
["pip_repository.bzl" , "repositories.bzl" ],
13
22
visibility = ["//docs:__pkg__" ],
You can’t perform that action at this time.
0 commit comments