This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author petr.viktorin
Recipients petr.viktorin
Date 2018-07-11.14:35:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1531319758.26.0.56676864532.issue34097@psf.upfronthosting.co.za>
In-reply-to
Content
The ZIP format cannot handle times before 1980.
Issue6090 provided a nice error message for trying to add such files.

I'm seeing a system for reproducible builds that sets mtime to 1970 (zero UNIX timestamp), resulting in files that Python can't package into (zip-based) wheels.

At least here on Fedora, the `zip` command-line utility silently bumps old timestamps to 1980-01-01. Of course, silently corrupting data would not be good default behavior for Python.
But in many cases timestamps don't matter. It would be nice to give ZipFile and ZipFile.write() a `strict_timestamps=True` keyword argument that could be turned off.
History
Date User Action Args
2018-07-11 14:35:58petr.viktorinsetrecipients: + petr.viktorin
2018-07-11 14:35:58petr.viktorinsetmessageid: <1531319758.26.0.56676864532.issue34097@psf.upfronthosting.co.za>
2018-07-11 14:35:58petr.viktorinlinkissue34097 messages
2018-07-11 14:35:58petr.viktorincreate