Skip to content

Commit

Permalink
Skip directory when adding license files to wheel (#1890)
Browse files Browse the repository at this point in the history
  • Loading branch information
messense authored Dec 19, 2023
1 parent 6ce4650 commit 5172fa9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@ impl Metadata21 {
glob::glob(&escaped_manifest_path.join(pattern).to_string_lossy())?
.filter_map(Result::ok)
{
if !license_path.is_file() {
continue;
}
// if the pyproject.toml specified the license file,
// then we won't list it as automatically included
if !self.license_files.contains(&license_path) {
Expand Down

0 comments on commit 5172fa9

Please sign in to comment.