Skip to content

Commit 5ad738f

Browse files
Wulian233vstinner
andauthored
gh-91279: Note SOURCE_DATE_EPOCH support in ZipFile.writestr() doc (#139396)
Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent cd10a2e commit 5ad738f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Doc/library/zipfile.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,11 @@ ZipFile objects
533533
a closed ZipFile will raise a :exc:`ValueError`. Previously,
534534
a :exc:`RuntimeError` was raised.
535535

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+
536541
.. method:: ZipFile.mkdir(zinfo_or_directory, mode=511)
537542

538543
Create a directory inside the archive. If *zinfo_or_directory* is a string,

0 commit comments

Comments
 (0)