Skip to content

Commit 86e7135

Browse files
alexeaglehrfuller
andauthored
Revert "py_library generated from wheel shouldn't include tests/ folders (bazel-contrib#528)" (bazel-contrib#539)
This reverts commit 7609526. Fixes bazel-contrib#538 Co-authored-by: Henry Fuller <hrofuller@gmail.com>
1 parent fede517 commit 86e7135

File tree

1 file changed

+1
-9
lines changed
  • python/pip_install/extract_wheels/lib

1 file changed

+1
-9
lines changed

python/pip_install/extract_wheels/lib/bazel.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -132,15 +132,7 @@ def generate_build_file_contents(
132132
133133
py_library(
134134
name = "{name}",
135-
srcs = glob(
136-
["**/*.py"],
137-
allow_empty = True,
138-
exclude = [
139-
"{entry_point_prefix}*.py",
140-
"tests/**",
141-
"*/tests/**",
142-
],
143-
),
135+
srcs = glob(["**/*.py"], exclude=["{entry_point_prefix}*.py"], allow_empty = True),
144136
data = glob(["**/*"], exclude={data_exclude}),
145137
# This makes this directory a top-level in the python import
146138
# search path for anything that depends on this.

0 commit comments

Comments
 (0)