Skip to content

Commit 34f63ea

Browse files
committed
Only match './dist' and not './distributions', as found in coherent.deps.
CLoses #31.
1 parent 06a28ad commit 34f63ea

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

backend.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,13 @@ class SDist(Filter):
6666
Should not ignore nested dist dirs
6767
>>> sf(types.SimpleNamespace(name='./bar/dist'))
6868
namespace(name='foo/bar/dist')
69+
70+
Should not ignore paths that begin with 'dist'
71+
>>> sf(types.SimpleNamespace(name='./distributions'))
72+
namespace(name='foo/distributions')
6973
"""
7074

71-
ignored = ['dist', r'(.*[/])?__pycache__$', r'(.*[/])?[.]']
75+
ignored = ['dist$', r'(.*[/])?__pycache__$', r'(.*[/])?[.]']
7276

7377

7478
class Wheel(Filter):

0 commit comments

Comments
 (0)