https://github.com/python/cpython/commit/5ad738f8fb214e9852dc527e6754cbfb7abf6cc8
commit: 5ad738f8fb214e9852dc527e6754cbfb7abf6cc8
branch: main
author: Wulian233 <[email protected]>
committer: vstinner <[email protected]>
date: 2026-03-20T16:14:25Z
summary:

gh-91279: Note `SOURCE_DATE_EPOCH` support in `ZipFile.writestr()` doc (#139396)

Co-authored-by: Victor Stinner <[email protected]>

files:
M Doc/library/zipfile.rst

diff --git a/Doc/library/zipfile.rst b/Doc/library/zipfile.rst
index 2d9231707d9f2d..9999ac26999910 100644
--- a/Doc/library/zipfile.rst
+++ b/Doc/library/zipfile.rst
@@ -533,6 +533,11 @@ ZipFile objects
       a closed ZipFile will raise a :exc:`ValueError`.  Previously,
       a :exc:`RuntimeError` was raised.
 
+   .. versionchanged:: 3.14
+      Now respects the :envvar:`SOURCE_DATE_EPOCH` environment variable.
+      If set, it uses this value as the modification timestamp for the file
+      written into the ZIP archive, instead of using the current time.
+
 .. method:: ZipFile.mkdir(zinfo_or_directory, mode=511)
 
    Create a directory inside the archive.  If *zinfo_or_directory* is a string,

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to