Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Frost Ming <me@frostming.com>
  • Loading branch information
frostming committed Sep 20, 2024
1 parent 290a1bf commit 091584c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pdm/backend/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,8 @@ def find_license_files(self, metadata: StandardMetadata) -> list[str]:
): # no license files specified, find from default patterns for backward compatibility
for pattern in ["LICEN[CS]E*", "COPYING*", "NOTICE*"]:
for path in self.location.glob(pattern):
result.append(path.relative_to(self.location).as_posix())
if path.is_file():
result.append(path.relative_to(self.location).as_posix())
return result

def _get_include_and_exclude(self) -> tuple[set[str], set[str]]:
Expand Down

0 comments on commit 091584c

Please sign in to comment.