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 cd10a2e commit 5ad738fCopy full SHA for 5ad738f
Doc/library/zipfile.rst
@@ -533,6 +533,11 @@ ZipFile objects
533
a closed ZipFile will raise a :exc:`ValueError`. Previously,
534
a :exc:`RuntimeError` was raised.
535
536
+ .. versionchanged:: 3.14
537
+ Now respects the :envvar:`SOURCE_DATE_EPOCH` environment variable.
538
+ If set, it uses this value as the modification timestamp for the file
539
+ written into the ZIP archive, instead of using the current time.
540
+
541
.. method:: ZipFile.mkdir(zinfo_or_directory, mode=511)
542
543
Create a directory inside the archive. If *zinfo_or_directory* is a string,
0 commit comments