From e69439e5ee0a973f058385119bfa90a0557b0ab2 Mon Sep 17 00:00:00 2001 From: zschira Date: Tue, 6 Feb 2024 13:27:30 -0500 Subject: [PATCH] Test fix for zipfile compression --- src/pudl_archiver/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pudl_archiver/utils.py b/src/pudl_archiver/utils.py index 9e8626e5..08a1c046 100644 --- a/src/pudl_archiver/utils.py +++ b/src/pudl_archiver/utils.py @@ -70,4 +70,5 @@ def add_to_archive_stable_hash(archive: zipfile.ZipFile, filename, data: bytes): # Set fixed date to enable hash comparisons between archives date_time=(1980, 1, 1, 0, 0, 0), ) + info.compress_type = zipfile.ZIP_DEFLATED archive.writestr(info, data)