Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-91279: Note SOURCE_DATE_EPOCH support in ZipFile.writestr() doc (
GH-139396)

(cherry picked from commit 5ad738f)

Co-authored-by: Wulian233 <1055917385@qq.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
  • Loading branch information
2 people authored and miss-islington committed Mar 20, 2026
commit 9cec510f0dfd8142c1703a642dc11016db39876a
5 changes: 5 additions & 0 deletions Doc/library/zipfile.rst
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,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,
Expand Down
Loading