Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.3k
gh-51067: Addremove()
andrepack()
toZipFile
#134627
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Open
danny0838 wants to merge71 commits intopython:mainChoose a base branch fromdanny0838:gh-51067-2
base:main
Could not load branches
Branch not found:{{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline, and old review comments may become outdated.
+2,839 −0
Open
Changes from1 commit
Commits
Show all changes
71 commits Select commitHold shift + click to select a range
6aed859
Add `remove()` and `repack()` to `ZipFile`
danny08385453dbc
📜🤖 Added by blurb_it.
blurb-it[bot]80ab2e2
Fix and optimize test code
danny083872c2a66
Handle common setups with `setUpClass`
danny0838a4b410b
Add tests for mode `w` and `x` for `remove()`
danny0838a9e85c6
Introduce `_calc_initial_entry_offset` and refactor
danny0838236cd06
Optimize `_calc_initial_entry_offset` by introducing cache
danny0838bdc58c7
Introduce `_validate_local_file_entry` and refactor
danny0838c3c8345
Introduce `_debug` and refactor
danny08381b7d75a
Introduce `_move_entry_data` and rework chunk_size passing
danny083851c9254
Refactor `_validate_local_file_entry`
danny08380d971d8
Add `strict_descriptor` option
danny08388f0a504
Fix and improve validation tests
danny08380cb8682
Remove obsolete NameToInfo updating
danny0838a788a00
Use `zinfo` rather than `info`
danny0838ae01b8c
Raise on overlapping file blocks
danny0838edee203
Rework writing protection
danny0838555ac78
Update doc
danny083895fde31
Fix typo
danny08388a448e4
Add test for bytes between file entries
danny08384c35eb2
Check `testzip()` after zip file closed
danny0838926338c
Support `repack(removed)`
danny0838e76f9a1
Fix bytes between entries be removed when `removed` is passed
danny083893f4c25
Fix bad test code
danny08389e94209
Revise docstring
danny08383ef72c6
Add `tearDown` for tests
danny0838fbf7588
Rename methods and parameters
danny083881a419a
Adjust parameter order
danny0838c62a455
Optimize code and revise comment
danny0838a05353c
Improve debug for `_ZipRepacker.repack()`
danny08383d0240c
Rework `_validate_local_file_entry_sequence` to return size or None
danny083831c4c93
Rework `_validate_local_file_entry_sequence` to allow passing no `che…
danny0838f8fade1
Introduce `_scan_data_descriptor_no_sig_by_decompression`
danny0838c80d21b
Strip only entries immediately following a referenced entry
danny0838e1caea9
Adjust method names
danny08382b23d46
Add memory usage test
danny0838de4f15b
Fix rst
danny0838ea3259f
Optimize code
danny0838fef92c4
Fix and optimize `_iter_scan_signature`
danny08388067b0c
Fix `_scan_data_descriptor`
danny083892d3a9c
Fix and optimize `_scan_data_descriptor_no_sig`
danny0838b5d7ae3
Rename `_trace_compressed_block_end`
danny08381d5ec61
Fix `_scan_data_descriptor_no_sig_by_decompression`
danny0838db9d0d6
Add tests for `_ZipRepacker`
danny0838aaa566c
Remove unneeded import
danny0838578c7c8
Add requirements
danny0838c470c33
Fix `_scan_data_descriptor_no_sig_by_decompression` when library not …
danny0838b1dcb07
Test with pre-calculated CRC
danny083804cddef
Remove unneeded import
danny0838797a62c
Fix and optimize `repack`
danny08383b2f232
Remove unneeded catch type
danny0838cb549c9
Patch more explicitly
danny08380f50a6f
Remove unneeded variables
danny0838c759b63
Improve dependency check for decompression tests
danny08381ece5b1
Refactor and optimize `RepackHelperMixin`
danny0838ce88616
Update NEWS
danny08385f093e5
Sync with danny0838/zipremove@1691ca25bf971cf1e45d5ed7d22c512636f20cb8
danny083811c0937
Revise NEWS
danny08384b2176e
Sync with danny0838/zipremove@1843d87b70e6cb129fb55446eaf4486a87d2af4d
danny0838d9824ce
Fix timezone related timestamp issue
danny083885811ab
Simplify tests with data descriptors
danny0838748ac63
Sync with danny0838/zipremove@e79042768f3c2541e0226f6bed3a9ff2ee04fac0
danny0838001a8d0
Sync with danny0838/zipremove@87bcdb50411a355d24c35f31dcbe4273c0568cf8
danny08383a364ce
Sync with danny0838/zipremove@6a78bd15de87afde510f8a1b6364365c6e17f252
danny08380832528
Sync with danny0838/zipremove@092f98b4d7b3a0cd335fe4ba64e7090ebb3dc6da
danny0838f20ec5d
Revise doc for `repack`
danny08388e69c09
Revise doc for `remove`
danny0838725b1a3
Update `data_offset`
danny08389e82bb7
Revise doc for `repack`
danny083893db94a
Revise doc for `repack`
danny083872673e0
Sync with danny0838/zipremove@8bedf7c9b891acadc3393d2f1267b78bd9b5a49a
danny0838File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
Fix rst
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
commitde4f15bb4aebe5a346d5b143d10e3881c7f5a454
There are no files selected for viewing
1 change: 1 addition & 0 deletionsDoc/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
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.