Skip to content

Commit

Permalink
fix: add missing api distribution target (#2464)
Browse files Browse the repository at this point in the history
The distribution file groups are mostly used by integration tests, not
releases, so these
filegroups missing doesn't usually cause a problem.

This was found when importing rules_python into Google, where filegroups
of the rules sources
are fed into various tests.
  • Loading branch information
rickeylev authored Dec 3, 2024
1 parent d0c1555 commit a362339
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions python/private/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ licenses(["notice"])
filegroup(
name = "distribution",
srcs = glob(["**"]) + [
"//python/private/api:distribution",
"//python/private/proto:distribution",
"//python/private/pypi:distribution",
"//python/private/whl_filegroup:distribution",
Expand Down
5 changes: 5 additions & 0 deletions python/private/api/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ package(
default_visibility = ["//:__subpackages__"],
)

filegroup(
name = "distribution",
srcs = glob(["**"]),
)

py_common_api(
name = "py_common_api",
# NOTE: Not actually public. Implicit dependency of public rules.
Expand Down

0 comments on commit a362339

Please sign in to comment.