10000 Add gazelle distribution and enable build_file_generation test (#913) · cflewis/rules_python@d170eb9 · GitHub
[go: up one dir, main page]

Skip to content

Commit d170eb9

Browse files
authored
Add gazelle distribution and enable build_file_generation test (bazel-contrib#913)
1 parent 9b47b75 commit d170eb9

File tree

8 files changed

+49
-0
lines changed

8 files changed

+49
-0
lines changed

BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ filegroup(
3232
"WORKSPACE",
3333
"internal_deps.bzl",
3434
"internal_setup.bzl",
35+
"//gazelle:distribution",
3536
"//python:distribution",
3637
"//python/pip_install:distribution",
3738
"//third_party/github.com/bazelbuild/bazel-skylib/lib:distribution",

examples/BUILD

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ package(default_visibility = ["//visibility:public"])
1717

1818
licenses(["notice"]) # Apache 2.0
1919

20+
bazel_integration_test(
21+
name = "build_file_generation_example",
22+
timeout = "long",
23+
)
24+
2025
bazel_integration_test(
2126
name = "pip_install_example",
2227
timeout = "long",

gazelle/BUILD.bazel

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,13 @@ gazelle_binary(
6969
languages = ["//gazelle"],
7070
visibility = ["//visibility:public"],
7171
)
72+
73+
filegroup(
74+
name = "distribution",
75+
srcs = glob(["**"]) + [
76+
"//gazelle/manifest:distribution",
77+
"//gazelle/modules_mapping:distribution",
78+
"/ 10000 /gazelle/pythonconfig:distribution",
79+
],
80+
visibility = ["//:__pkg__"],
81+
)

gazelle/manifest/BUILD.bazel

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,12 @@ go_test(
1717
data = glob(["testdata/**"]),
1818
deps = [":manifest"],
1919
)
20+
21+
filegroup(
22+
name = "distribution",
23+
srcs = glob(["**"]) + [
24+
"//gazelle/manifest/generate:distribution",
25+
"//gazelle/manifest/test:distribution",
26+
],
27+
visibility = ["//gazelle:__pkg__"],
28+
)

gazelle/manifest/generate/BUILD.bazel

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,9 @@ go_binary(
1313
embed = [":generate_lib"],
1414
visibility = ["//visibility:public"],
1515
)
16+
17+
filegroup(
18+
name = "distribution",
19+
srcs = glob(["**"]),
20+
visibility = ["//gazelle/manifest:__pkg__"],
21+
)

gazelle/manifest/test/BUILD.bazel

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,9 @@ go_binary(
1515
)
1616

1717
exports_files(["run.sh"])
18+
19+
filegroup(
20+
name = "distribution",
21+
srcs = glob(["**"]),
22+
visibility = ["//gazelle/manifest:__pkg__"],
23+
)

gazelle/modules_mapping/BUILD.bazel

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,9 @@ py_binary(
55
srcs = ["generator.py"],
66
visibility = ["//visibility:public"],
77
)
8+
9+
filegroup(
10+
name = "distribution",
11+
srcs = glob(["**"]),
12+
visibility = ["//gazelle:__pkg__"],
13+
)

gazelle/pythonconfig/BUILD.bazel

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,9 @@ go_library(
1414
"@com_github_emirpasic_gods//lists/singlylinkedlist",
1515
],
1616
)
17+
18+
filegroup(
19+
name = "distribution",
20+
srcs = glob(["**"]),
21+
visibility = ["//gazelle:__pkg__"],
22+
)

0 commit comments

Comments
 (0)
0