Skip to content

Commit

Permalink
Make .json.gz files deterministic (#8218)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmwiedemann authored Oct 12, 2024
1 parent a6dc298 commit 91e8524
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def run(self) -> None:
print(f"Compressing {file} into {target_filename}...") # noqa
with open(file, "rb") as source:
with open(target_filename, "wb") as target:
target.write(gzip.compress(source.read()))
target.write(gzip.compress(source.read(), mtime=0))
print(f"Removing {file}...") # noqa
Path(file).unlink()

Expand Down

0 comments on commit 91e8524

Please sign in to comment.