Skip to content

Commit

Permalink
Merge branch 'master' into validate-exclude-patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
ofek authored Nov 9, 2024
2 parents eafb150 + 58c0982 commit a93e664
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/src/hatchling/builders/wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ def add_file(self, included_file: IncludedFile) -> tuple[str, str, str]:
set_zip_info_mode(zip_info, new_mode)
if stat.S_ISDIR(file_stat.st_mode): # no cov
zip_info.external_attr |= 0x10
else:
zip_info.file_size = file_stat.st_size
else:
zip_info = zipfile.ZipInfo.from_file(included_file.path, relative_path)

Expand Down

0 comments on commit a93e664

Please sign in to comment.