FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-91279: Note ``SOURCE_DATE_EPOCH`` support in ``ZipFile.writestr()`` by Wulian233 · Pull Request #139396 · python/cpython · GitHub

/ cpython Public
5 changes: 5 additions & 0 deletions Doc/library/zipfile.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading

Back | FazBrowse Home | New Git URL