From 34f63ea36680654f92d85133640b565c589dd43b Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sun, 12 Jan 2025 21:01:16 -0500 Subject: [PATCH] Only match './dist' and not './distributions', as found in coherent.deps. CLoses #31. --- backend.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend.py b/backend.py index 17ef5ae..c1844ef 100644 --- a/backend.py +++ b/backend.py @@ -66,9 +66,13 @@ class SDist(Filter): Should not ignore nested dist dirs >>> sf(types.SimpleNamespace(name='./bar/dist')) namespace(name='foo/bar/dist') + + Should not ignore paths that begin with 'dist' + >>> sf(types.SimpleNamespace(name='./distributions')) + namespace(name='foo/distributions') """ - ignored = ['dist', r'(.*[/])?__pycache__$', r'(.*[/])?[.]'] + ignored = ['dist$', r'(.*[/])?__pycache__$', r'(.*[/])?[.]'] class Wheel(Filter):