Skip to content

Commit

Permalink
'exclude' should be able to override 'include' matches
Browse files Browse the repository at this point in the history
Note that this behavior was different for files in dirs; see
"if file.is_dir():" block a bit higher in the code.

Related: python-poetry/poetry#1336
  • Loading branch information
brechtm committed Jan 21, 2021
1 parent 275e5a4 commit 26217e1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions poetry/core/masonry/builders/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,7 @@ def find_files_to_add(
path=file, project_root=self._path, source_root=source_root
)

if self.is_excluded(
file.relative_to(source_root)
) and isinstance(include, PackageInclude):
if self.is_excluded(file.relative_to(source_root)):
continue

if file.suffix == ".pyc":
Expand Down

0 comments on commit 26217e1

Please sign in to comment.