From f28ee47f4b6a145c5e5afb4257a4fdbfa5d5a491 Mon Sep 17 00:00:00 2001 From: Dylan Freedman Date: Sun, 25 Feb 2024 16:29:46 -0500 Subject: [PATCH] chore: remove reproducible wheel --- python/make_wheels.py | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/python/make_wheels.py b/python/make_wheels.py index 6ca9537..93e2276 100644 --- a/python/make_wheels.py +++ b/python/make_wheels.py @@ -47,20 +47,6 @@ version = f.read().strip() -class ReproducibleWheelFile(WheelFile): - # Copied from Zig make_wheels.py - def writestr(self, zinfo, *args, **kwargs): - if isinstance(zinfo, str): - # arcname provided - return self.writestr(ZipInfo(filename=zinfo, *args, **kwargs)) - - if not isinstance(zinfo, ZipInfo): - raise ValueError("ZipInfo required") - zinfo.date_time = time.gmtime(time.time())[0:6] # Current time - zinfo.create_system = 3 - super().writestr(zinfo, *args, **kwargs) - - def make_message(headers, payload=None): # Copied from Zig make_wheels.py msg = EmailMessage() @@ -77,7 +63,7 @@ def make_message(headers, payload=None): def write_wheel_file(filename, contents): # Copied from Zig make_wheels.py - with ReproducibleWheelFile(filename, "w") as wheel: + with WheelFile(filename, "w") as wheel: for member_info, member_source in contents.items(): if not isinstance(member_info, ZipInfo): member_info = ZipInfo(member_info)