FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[Original HTTPS Page]
gh-51067: Add `remove()` and `repack()` to `ZipFile` by danny0838 · Pull Request #134627 · python/cpython · GitHub
python
cpython
Repository navigation
Code
Issues
5k+
(5k+)
Pull requests
2.3k
(2.3k)
Actions
Projects
Security and quality
Insights
gh-51067: Add remove() and repack() to ZipFile
- #134627
#134627
Merged
gpshead
merged 88 commits into
python:main
python/cpython:main
from
danny0838:gh-51067-2
danny0838/cpython:gh-51067-2
Copy head branch name to clipboard
Jun 20, 2026
Conversation
Commits
88
(88)
Checks
Files changed
Merged
gh-51067: Add remove() and repack() to ZipFile
#134627
gpshead
merged 88 commits into
python:main
python/cpython:main
from
danny0838:gh-51067-2
danny0838/cpython:gh-51067-2
Copy head branch name to clipboard
Commits
Commits on May 24, 2025
Add `remove()` and `repack()` to `ZipFile`
danny0838
committed
6aed859
View commit details
Copy full SHA for 6aed859
Browse repository at this point
📜🤖 Added by blurb_it.
blurb-it[bot]
authored
5453dbc
View commit details
Copy full SHA for 5453dbc
Browse repository at this point
Fix and optimize test code
danny0838
committed
80ab2e2
View commit details
Copy full SHA for 80ab2e2
Browse repository at this point
Handle common setups with `setUpClass`
danny0838
committed
72c2a66
View commit details
Copy full SHA for 72c2a66
Browse repository at this point
Add tests for mode `w` and `x` for `remove()`
danny0838
committed
a4b410b
View commit details
Copy full SHA for a4b410b
Browse repository at this point
Commits on May 25, 2025
Introduce `_calc_initial_entry_offset` and refactor
danny0838
committed
a9e85c6
View commit details
Copy full SHA for a9e85c6
Browse repository at this point
Optimize `_calc_initial_entry_offset` by introducing cache
danny0838
committed
236cd06
View commit details
Copy full SHA for 236cd06
Browse repository at this point
Introduce `_validate_local_file_entry` and refactor
danny0838
committed
bdc58c7
View commit details
Copy full SHA for bdc58c7
Browse repository at this point
Introduce `_debug` and refactor
danny0838
committed
c3c8345
View commit details
Copy full SHA for c3c8345
Browse repository at this point
Introduce `_move_entry_data` and rework chunk_size passing
danny0838
committed
1b7d75a
View commit details
Copy full SHA for 1b7d75a
Browse repository at this point
Refactor `_validate_local_file_entry`
danny0838
committed
51c9254
View commit details
Copy full SHA for 51c9254
Browse repository at this point
Add `strict_descriptor` option
danny0838
committed
0d971d8
View commit details
Copy full SHA for 0d971d8
Browse repository at this point
Fix and improve validation tests
Show description for 8f0a504
danny0838
committed
8f0a504
View commit details
Copy full SHA for 8f0a504
Browse repository at this point
Remove obsolete NameToInfo updating
danny0838
committed
0cb8682
View commit details
Copy full SHA for 0cb8682
Browse repository at this point
Use `zinfo` rather than `info`
danny0838
committed
a788a00
View commit details
Copy full SHA for a788a00
Browse repository at this point
Raise on overlapping file blocks
danny0838
committed
ae01b8c
View commit details
Copy full SHA for ae01b8c
Browse repository at this point
Rework writing protection
Show description for edee203
danny0838
committed
edee203
View commit details
Copy full SHA for edee203
Browse repository at this point
Update doc
danny0838
committed
555ac78
View commit details
Copy full SHA for 555ac78
Browse repository at this point
Commits on May 26, 2025
Fix typo
danny0838
committed
95fde31
View commit details
Copy full SHA for 95fde31
Browse repository at this point
Add test for bytes between file entries
danny0838
committed
8a448e4
View commit details
Copy full SHA for 8a448e4
Browse repository at this point
Check `testzip()` after zip file closed
danny0838
committed
4c35eb2
View commit details
Copy full SHA for 4c35eb2
Browse repository at this point
Support `repack(removed)`
danny0838
committed
926338c
View commit details
Copy full SHA for 926338c
Browse repository at this point
Fix bytes between entries be removed when `removed` is passed
danny0838
committed
e76f9a1
View commit details
Copy full SHA for e76f9a1
Browse repository at this point
Fix bad test code
danny0838
committed
93f4c25
View commit details
Copy full SHA for 93f4c25
Browse repository at this point
Commits on May 27, 2025
Revise docstring
danny0838
committed
9e94209
View commit details
Copy full SHA for 9e94209
Browse repository at this point
Commits on May 28, 2025
Add `tearDown` for tests
danny0838
committed
3ef72c6
View commit details
Copy full SHA for 3ef72c6
Browse repository at this point
Rename methods and parameters
danny0838
committed
fbf7588
View commit details
Copy full SHA for fbf7588
Browse repository at this point
Commits on May 29, 2025
Adjust parameter order
danny0838
committed
81a419a
View commit details
Copy full SHA for 81a419a
Browse repository at this point
Optimize code and revise comment
Show description for c62a455
danny0838
committed
c62a455
View commit details
Copy full SHA for c62a455
Browse repository at this point
Commits on May 30, 2025
Improve debug for `_ZipRepacker.repack()`
danny0838
committed
a05353c
View commit details
Copy full SHA for a05353c
Browse repository at this point
Rework `_validate_local_file_entry_sequence` to return size or None
danny0838
committed
3d0240c
View commit details
Copy full SHA for 3d0240c
Browse repository at this point
Rework `_validate_local_file_entry_sequence` to allow passing no `checked_offsets`
danny0838
committed
31c4c93
View commit details
Copy full SHA for 31c4c93
Browse repository at this point
Introduce `_scan_data_descriptor_no_sig_by_decompression`
danny0838
committed
f8fade1
View commit details
Copy full SHA for f8fade1
Browse repository at this point
Strip only entries immediately following a referenced entry
Show description for c80d21b
danny0838
committed
c80d21b
View commit details
Copy full SHA for c80d21b
Browse repository at this point
Adjust method names
danny0838
committed
e1caea9
View commit details
Copy full SHA for e1caea9
Browse repository at this point
Add memory usage test
danny0838
committed
2b23d46
View commit details
Copy full SHA for 2b23d46
Browse repository at this point
Fix rst
danny0838
committed
de4f15b
View commit details
Copy full SHA for de4f15b
Browse repository at this point
Commits on Jun 1, 2025
Optimize code
danny0838
committed
ea3259f
View commit details
Copy full SHA for ea3259f
Browse repository at this point
Fix and optimize `_iter_scan_signature`
danny0838
committed
fef92c4
View commit details
Copy full SHA for fef92c4
Browse repository at this point
Fix `_scan_data_descriptor`
danny0838
committed
8067b0c
View commit details
Copy full SHA for 8067b0c
Browse repository at this point
Fix and optimize `_scan_data_descriptor_no_sig`
danny0838
committed
92d3a9c
View commit details
Copy full SHA for 92d3a9c
Browse repository at this point
Rename `_trace_compressed_block_end`
danny0838
committed
b5d7ae3
View commit details
Copy full SHA for b5d7ae3
Browse repository at this point
Fix `_scan_data_descriptor_no_sig_by_decompression`
danny0838
committed
1d5ec61
View commit details
Copy full SHA for 1d5ec61
Browse repository at this point
Add tests for `_ZipRepacker`
danny0838
committed
db9d0d6
View commit details
Copy full SHA for db9d0d6
Browse repository at this point
Remove unneeded import
danny0838
committed
aaa566c
View commit details
Copy full SHA for aaa566c
Browse repository at this point
Add requirements
danny0838
committed
578c7c8
View commit details
Copy full SHA for 578c7c8
Browse repository at this point
Fix `_scan_data_descriptor_no_sig_by_decompression` when library not available
danny0838
committed
c470c33
View commit details
Copy full SHA for c470c33
Browse repository at this point
Test with pre-calculated CRC
danny0838
committed
b1dcb07
View commit details
Copy full SHA for b1dcb07
Browse repository at this point
Remove unneeded import
danny0838
committed
04cddef
View commit details
Copy full SHA for 04cddef
Browse repository at this point
Fix and optimize `repack`
danny0838
committed
797a62c
View commit details
Copy full SHA for 797a62c
Browse repository at this point
Commits on Jun 14, 2025
Remove unneeded catch type
Show description for 3b2f232
danny0838
committed
3b2f232
View commit details
Copy full SHA for 3b2f232
Browse repository at this point
Patch more explicitly
danny0838
committed
cb549c9
View commit details
Copy full SHA for cb549c9
Browse repository at this point
Remove unneeded variables
danny0838
committed
0f50a6f
View commit details
Copy full SHA for 0f50a6f
Browse repository at this point
Improve dependency check for decompression tests
danny0838
committed
c759b63
View commit details
Copy full SHA for c759b63
Browse repository at this point
Refactor and optimize `RepackHelperMixin`
danny0838
committed
1ece5b1
View commit details
Copy full SHA for 1ece5b1
Browse repository at this point
Commits on Jun 20, 2025
Update NEWS
danny0838
committed
ce88616
View commit details
Copy full SHA for ce88616
Browse repository at this point
Sync with danny0838/zipremove@1691ca25bf971cf1e45d5ed7d22c512636f20cb8
danny0838
committed
5f093e5
View commit details
Copy full SHA for 5f093e5
Browse repository at this point
Revise NEWS
danny0838
committed
11c0937
View commit details
Copy full SHA for 11c0937
Browse repository at this point
Commits on Jun 21, 2025
Sync with danny0838/zipremove@1843d87b70e6cb129fb55446eaf4486a87d2af4d
danny0838
committed
4b2176e
View commit details
Copy full SHA for 4b2176e
Browse repository at this point
Fix timezone related timestamp issue
danny0838
committed
d9824ce
View commit details
Copy full SHA for d9824ce
Browse repository at this point
Commits on Jun 22, 2025
Simplify tests with data descriptors
danny0838
committed
85811ab
View commit details
Copy full SHA for 85811ab
Browse repository at this point
Commits on Jun 23, 2025
Sync with danny0838/zipremove@e79042768f3c2541e0226f6bed3a9ff2ee04fac0
danny0838
committed
748ac63
View commit details
Copy full SHA for 748ac63
Browse repository at this point
Commits on Jun 24, 2025
Sync with danny0838/zipremove@87bcdb50411a355d24c35f31dcbe4273c0568cf8
danny0838
committed
001a8d0
View commit details
Copy full SHA for 001a8d0
Browse repository at this point
Commits on Jun 25, 2025
Sync with danny0838/zipremove@6a78bd15de87afde510f8a1b6364365c6e17f252
danny0838
committed
3a364ce
View commit details
Copy full SHA for 3a364ce
Browse repository at this point
Commits on Jun 27, 2025
Sync with danny0838/zipremove@092f98b4d7b3a0cd335fe4ba64e7090ebb3dc6da
danny0838
committed
0832528
View commit details
Copy full SHA for 0832528
Browse repository at this point
Commits on Jun 28, 2025
Revise doc for `repack`
danny0838
committed
f20ec5d
View commit details
Copy full SHA for f20ec5d
Browse repository at this point
Commits on Jun 29, 2025
Revise doc for `remove`
danny0838
committed
8e69c09
View commit details
Copy full SHA for 8e69c09
Browse repository at this point
Update `data_offset`
danny0838
committed
725b1a3
View commit details
Copy full SHA for 725b1a3
Browse repository at this point
Commits on Jul 1, 2025
Revise doc for `repack`
danny0838
committed
9e82bb7
View commit details
Copy full SHA for 9e82bb7
Browse repository at this point
Commits on Jul 2, 2025
Revise doc for `repack`
danny0838
committed
93db94a
View commit details
Copy full SHA for 93db94a
Browse repository at this point
Commits on Jul 3, 2025
Sync with danny0838/zipremove@8bedf7c9b891acadc3393d2f1267b78bd9b5a49a
danny0838
committed
72673e0
View commit details
Copy full SHA for 72673e0
Browse repository at this point
Commits on Jul 22, 2025
Sync with danny0838/zipremove@86a240bf019fe9212b1e72c963306186163fb8b8
danny0838
committed
e926a95
View commit details
Copy full SHA for e926a95
Browse repository at this point
Commits on Jun 20, 2026
Sync with danny0838/zipremove@8ad341bdd28a78033d7111a0532cb4714349aee3
danny0838
committed
ee3b753
View commit details
Copy full SHA for ee3b753
Browse repository at this point
Merge remote-tracking branch 'origin/main' into gh-51067-2
gpshead
committed
5cbe51b
View commit details
Copy full SHA for 5cbe51b
Browse repository at this point
docs: clarify unspecified multiple entry removal, suggest ZipInfo
gpshead
committed
3dde04e
View commit details
Copy full SHA for 3dde04e
Browse repository at this point
whatsnew entry
gpshead
committed
59d7b0d
View commit details
Copy full SHA for 59d7b0d
Browse repository at this point
gh-51067: Default ZipFile.repack() to strict_descriptor=True
Show description for 9376c2d
gpshead
committed
9376c2d
View commit details
Copy full SHA for 9376c2d
Browse repository at this point
gh-51067: Document reliable space reclamation in ZipFile.repack()
Show description for cbae620
gpshead
committed
cbae620
View commit details
Copy full SHA for cbae620
Browse repository at this point
gh-51067: Bound _validate_local_file_entry to the scanned gap
Show description for e0fcc69
gpshead
committed
e0fcc69
View commit details
Copy full SHA for e0fcc69
Browse repository at this point
gh-51067: Guard _copy_bytes against short reads
Show description for adcd088
gpshead
committed
adcd088
View commit details
Copy full SHA for adcd088
Browse repository at this point
gh-51067: Spell out ZipFile.repack() keyword arguments
Show description for b6dfda7
gpshead
committed
b6dfda7
View commit details
Copy full SHA for b6dfda7
Browse repository at this point
gh-51067: Move NEWS entry to Library section
Show description for 645910a
gpshead
committed
645910a
View commit details
Copy full SHA for 645910a
Browse repository at this point
gh-51067: Fix docstring typos in _ZipRepacker
gpshead
committed
01b493e
View commit details
Copy full SHA for 01b493e
Browse repository at this point
gh-51067: Drop unreachable struct.error handler in no-sig DD scan
Show description for d339b6c
gpshead
committed
d339b6c
View commit details
Copy full SHA for d339b6c
Browse repository at this point
gh-51067: Use io.DEFAULT_BUFFER_SIZE in no-sig DD scan
Show description for b6937c5
gpshead
committed
b6937c5
View commit details
Copy full SHA for b6937c5
Browse repository at this point
gh-51067: Replace ComparableZipInfo class with a function
Show description for e7125e7
gpshead
committed
e7125e7
View commit details
Copy full SHA for e7125e7
Browse repository at this point
gh-51067: Add _REPACK_CHUNK_SIZE constant
Show description for eb29a30
gpshead
committed
eb29a30
View commit details
Copy full SHA for eb29a30
Browse repository at this point
gh-51067: Add tests for entry-size overshoot and _copy_bytes EOF
Show description for b70a80b
gpshead
committed
b70a80b
View commit details
Copy full SHA for b70a80b
Browse repository at this point
Back
|
FazBrowse Home
|
New Git URL