We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
SOURCE_DATE_EPOCH
ZipFile.writestr()
1 parent 2105187 commit 9cec510Copy full SHA for 9cec510
Doc/library/zipfile.rst
@@ -536,6 +536,11 @@ ZipFile objects
536
a closed ZipFile will raise a :exc:`ValueError`. Previously,
537
a :exc:`RuntimeError` was raised.
538
539
+ .. versionchanged:: 3.14
540
+ Now respects the :envvar:`SOURCE_DATE_EPOCH` environment variable.
541
+ If set, it uses this value as the modification timestamp for the file
542
+ written into the ZIP archive, instead of using the current time.
543
+
544
.. method:: ZipFile.mkdir(zinfo_or_directory, mode=511)
545
546
Create a directory inside the archive. If *zinfo_or_directory* is a string,
0 commit comments