| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
| |
(GH-123354) (#123433)
Applies changes from zipp 3.20.1 and jaraco/zippGH-124
(cherry picked from commit 2231286d78d328c2f575e0b05b16fe447d1656d6)
(cherry picked from commit 17b77bb41409259bad1cd6c74761c18b6ab1e860)
(cherry picked from commit 66d3383)
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
|
| |
|
|
|
|
|
| |
(GH-113916)
Raise BadZipFile when try to read an entry that overlaps with other entry or
central directory.
(cherry picked from commit 66363b9a7b9fe7c99eba3a185b74c5fdbf842eba)
|
| |
|
|
|
| |
(cherry picked from commit ff9147d93b868f0e13b9fe14e2a76c2879f6787b)
Co-authored-by: Jan Mazur <16736821+mzr@users.noreply.github.com>
|
| |
|
|
|
| |
(cherry picked from commit 36ff513f82e372ed3cea0bf7cbdf15a1ef6dab9e)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
| |
|
|
|
|
|
| |
(cherry picked from commit 9a81ab107a54b8ca320fb703f7c68e14ccd9d016)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* bpo-39667: Sync zipp 3.0 (GH-18540)
* bpo-39667: Improve pathlib.Path compatibility on zipfile.Path and correct performance degradation as found in zipp 3.0
* ππ€ Added by blurb_it.
* Update docs for new zipfile.Path.open
* Rely on dict, faster than OrderedDict.
* Syntax edits on docs
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
(cherry picked from commit 0aeab5c4381f0cc11479362af2533b3a391312ac)
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* Clarify the change in behavior with a couple of workaround options.
* Restore API compatibility while backporting performance improvements.
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Improve zipfile.Path performance on zipfiles with a large number of entries.
* ππ€ Added by blurb_it.
* Add bpo to blurb
* Sync with importlib_metadata 1.5 (6fe70ca)
* Update blurb.
* Remove compatibility code
* Add stubs module, omitted from earlier commit
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
(cherry picked from commit e5bd73632e77dc5ab0cab77e48e94ca5e354be8a)
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
|
| |
|
|
|
|
|
| |
(GH-14656)
(cherry picked from commit da6ce58dd5ac109485af45878fca6bfd265b43e9)
Co-authored-by: Daniel Hillier <daniel.hillier@gmail.com>
|
| |
|
|
|
|
| |
Test by Daniel Hillier.
(cherry picked from commit 5c32af7522d908e8c7da0243af37618433289cc5)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
| |
|
|
|
| |
(cherry picked from commit 2f1b857562b0f1601c9019db74c29b7d7e21ac9f)
Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* fix Path._add_implied_dirs to include all implied directories
* fix Path._add_implied_dirs to include all implied directories
* Optimize code by using sets instead of lists
* ππ€ Added by blurb_it.
* fix Path._add_implied_dirs to include all implied directories
* Optimize code by using sets instead of lists
* ππ€ Added by blurb_it.
* Add tests to zipfile.Path.iterdir() fix
* Update test for zipfile.Path.iterdir()
* remove whitespace from test file
* Rewrite NEWS blurb to describe the user-facing impact and avoid implementation details.
* remove redundant [] within set comprehension
* Update to use unique_everseen to maintain order and other suggestions in review
* remove whitespace and add back add_dirs in tests
* Add new standalone function parents using posixpath to get parents of a directory
* removing whitespace (sorry)
* Remove import pathlib from zipfile.py
* Rewrite _parents as a slice on a generator of the ancestry of a path.
* Remove check for '.' and '/', now that parents no longer returns those.
* Separate calculation of implied dirs from adding those
* Re-use _implied_dirs in tests for generating zipfile with dir entries.
* Replace three fixtures (abcde, abcdef, abde) with one representative example alpharep.
* Simplify implementation of _implied_dirs by collapsing the generation of parent directories for each name.
(cherry picked from commit a4e2991bdc993b60b6457c8a38d6e4a1fc845781)
Co-authored-by: shireenrao <shireenrao@gmail.com>
|
| |
|
|
|
|
|
|
| |
* bpo-37520: Correct behavior for zipfile.Path.parent
* ππ€ Added by blurb_it.
(cherry picked from commit 38f44b4a4adc37e8f5f8971917d8b3145f351a56)
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* bpo-36832: add zipfile.Path
* bpo-36832: add documentation for zipfile.Path
* ππ€ Added by blurb_it.
* Remove module reference from blurb.
* Sort the imports
* Update docstrings and docs per recommendations.
* Rely on test.support.temp_dir
* Signal that 'root' is the parameter.
* Correct spelling of 'mod'
* Convert docstring to comment for brevity.
* Fix more errors in the docs
|
| |
|
|
|
| |
Errors during writing no longer prevent to properly close
the ZIP file.
|
| | |
|
| |
|
|
| |
(GH-10592)
|
| |
|
|
| |
This makes streamed zips compatible with MacOS Archive Utility and
other applications.
|
| | |
|
| |
|
| |
Move strict_timestamps to constructor.
|
| |
|
|
|
| |
ZipFile can zip files older than 1980-01-01 and newer than 2107-12-31 using
a new strict_timestamps parameter at the cost of setting the timestamp
to the limit.
|
| | |
|
| |
|
|
|
|
| |
tarfile and zipfile now sort directory listing to generate tar and zip archives
in a more reproducible way.
See also https://reproducible-builds.org/docs/stable-inputs/ on that topic.
|
| |
|
|
|
| |
This allows for nested zip files, tar files within zip files, zip files within tar files, etc.
Contributed by: John Jolly
|
| |
|
|
|
|
| |
This allows the compression level to be specified when writing zipfiles
(for the entire file *and* overridden on a per-file basis).
Contributed by Bo Bayles
|
| |
|
|
|
|
| |
* Remove Setup.config
* Always define WITH_THREAD for compatibility.
|
| | |
|
| |
|
|
|
|
| |
(#1041)
multiple times. Writing to closed zip entry writer object now always produce
a ValueError.
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
paths. (#511)
|
| |\
| |
| |
| | |
"w" and "x" now are relative to the start of the file.
|
| | |\
| | |
| | |
| | | |
"w" and "x" now are relative to the start of the file.
|
| | | |
| | |
| | |
| | | |
"w" and "x" now are relative to the start of the file.
|
| | | | |
|
| | | |
| | |
| | |
| | | |
Added support of long options.
|
| |\ \ \
| |/ /
| | |
| | |
| | | |
file. Offsets in ZIP file now are relative to the start of the archive in
conforming to the specification.
|
| | |\ \
| | |/
| | |
| | |
| | | |
file. Offsets in ZIP file now are relative to the start of the archive in
conforming to the specification.
|
| | | |
| | |
| | |
| | |
| | | |
file. Offsets in ZIP file now are relative to the start of the archive in
conforming to the specification.
|
| |/ /
| |
| |
| | |
Patch by Stephen J. Turnbull.
|
| | |
| |
| |
| | |
appropriate types. Improved some error messages and debugging output.
|
| | |
| |
| |
| | |
ZipFile.open().
|
| | |
| |
| |
| | |
Patch by Thomas Kluyver.
|
| | |
| |
| |
| | |
file, as well as for extracting data. Patch by Thomas Kluyver.
|
| |/
|
|
| |
Patch by Thomas Kluyver.
|
| |
|
|
| |
Also align the parameter naming in binascii to be consistent with zlib.
|
| |\
| |
| |
| | |
entries. Patch by Dingyuan Wang.
|