Skip to content

Commit 6b7f7a1

Browse files
authored
Prevent bin folders to be taken as extern packages when vendoring (#4370)
2 parents 7208628 + 69141f6 commit 6b7f7a1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/vendored.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,11 @@ def yield_top_level(name):
171171
>>> examples = roots & {"jaraco", "backports", "zipp"}
172172
>>> list(sorted(examples))
173173
['backports', 'jaraco', 'zipp']
174+
>>> 'bin' in examples
175+
False
174176
"""
175177
vendor = Path(f"{name}/_vendor")
176-
ignore = {"__pycache__", "__init__.py", ".ruff_cache"}
178+
ignore = {"__pycache__", "__init__.py", ".ruff_cache", "bin"}
177179

178180
for item in sorted(vendor.iterdir()):
179181
if item.name in ignore:

0 commit comments

Comments
 (0)