Skip to content

Commit 819613d

Browse files
authored
fix: set compress_type on ZipInfo (#11)
1 parent 4715faf commit 819613d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

package_python_function/packager.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ def zip_dir(path: Path) -> None:
6868
)
6969
zinfo.date_time = date_time()
7070
zinfo.external_attr = 0o644 << 16
71+
zinfo.compress_type = zipfile.ZIP_DEFLATED
7172
self._uncompressed_bytes += item.stat().st_size
7273
with (
7374
open(item, "rb") as src,

0 commit comments

Comments
 (0)