Skip to content

Commit

Permalink
Exclude the BUILD.bazel and WORKSPACE files from data
Browse files Browse the repository at this point in the history
  • Loading branch information
arrdem committed Apr 19, 2024
1 parent 94c1f6f commit 25a13f7
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,12 @@ filegroup(
name = "{data_label}",
srcs = glob(
["**/*"],
exclude = ["{whl_name}", "site-packages/**"],
exclude = [
"WORKSPACE",
"BUILD.bazel",
"{whl_name}",
"site-packages/**",
],
allow_empty = True,
),
)
Expand Down
35 changes: 30 additions & 5 deletions tests/pip_install/whl_library/generate_build_bazel_tests.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@ filegroup(
name = "data",
srcs = glob(
["**/*"],
exclude = ["foo.whl", "site-packages/**"],
exclude = [
"WORKSPACE",
"BUILD.bazel",
"foo.whl",
"site-packages/**",
],
allow_empty = True,
),
)
Expand Down Expand Up @@ -111,7 +116,12 @@ filegroup(
name = "data",
srcs = glob(
["**/*"],
exclude = ["foo.whl", "site-packages/**"],
exclude = [
"WORKSPACE",
"BUILD.bazel",
"foo.whl",
"site-packages/**",
],
allow_empty = True,
),
)
Expand Down Expand Up @@ -270,7 +280,12 @@ filegroup(
name = "data",
srcs = glob(
["**/*"],
exclude = ["foo.whl", "site-packages/**"],
exclude = [
"WORKSPACE",
"BUILD.bazel",
"foo.whl",
"site-packages/**",
],
allow_empty = True,
),
)
Expand Down Expand Up @@ -365,7 +380,12 @@ filegroup(
name = "data",
srcs = glob(
["**/*"],
exclude = ["foo.whl", "site-packages/**"],
exclude = [
"WORKSPACE",
"BUILD.bazel",
"foo.whl",
"site-packages/**",
],
allow_empty = True,
),
)
Expand Down Expand Up @@ -446,7 +466,12 @@ filegroup(
name = "data",
srcs = glob(
["**/*"],
exclude = ["foo.whl", "site-packages/**"],
exclude = [
"WORKSPACE",
"BUILD.bazel",
"foo.whl",
"site-packages/**",
],
allow_empty = True,
),
)
Expand Down

0 comments on commit 25a13f7

Please sign in to comment.