Skip to content

Commit

Permalink
Prevent bin folders to be taken as extern packages when vendoring (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri authored May 20, 2024
2 parents 7208628 + 69141f6 commit 6b7f7a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/vendored.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,11 @@ def yield_top_level(name):
>>> examples = roots & {"jaraco", "backports", "zipp"}
>>> list(sorted(examples))
['backports', 'jaraco', 'zipp']
>>> 'bin' in examples
False
"""
vendor = Path(f"{name}/_vendor")
ignore = {"__pycache__", "__init__.py", ".ruff_cache"}
ignore = {"__pycache__", "__init__.py", ".ruff_cache", "bin"}

for item in sorted(vendor.iterdir()):
if item.name in ignore:
Expand Down

0 comments on commit 6b7f7a1

Please sign in to comment.