-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
ENH: add support for reading .tar archives #44787
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 30 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
c1823ef
Add reproduction test for .tar.gz archives
Skn0tt 9a85cba
add support for .tar archives
Skn0tt e673061
update doc comments
Skn0tt a0d6386
fix: pep8 errors
Skn0tt 6a8edef
refactor: flip _compression_to_extension around to support multiple e…
Skn0tt d4e40c9
refactor: detect tar files using existing extension mapping
Skn0tt 5f22df7
feat: add support for writing tar files
Skn0tt c6573ef
feat: assure it respects .gz endings
Skn0tt f3b6ed5
Merge branch 'master' into read-tar-archives
Skn0tt a4ac382
feat: add "tar" entry to compressionoptions
Skn0tt e66826b
chore: add whatsnew entry
Skn0tt 941be37
fix: test_compression_size_fh
Skn0tt e3369aa
Merge branch 'master' into read-tar-archives
Skn0tt 0468e5f
add tarfile to shared compression docs
Skn0tt 2531ee0
fix formatting
Skn0tt 57eba0a
pass through "mode" via compression args
Skn0tt 38f7d54
fix pickle test
Skn0tt 887fd10
add class comment
Skn0tt fc2e7f0
Merge remote-tracking branch 'origin/main' into read-tar-archives
Skn0tt 669d942
sort imports
Skn0tt 7d7d3c6
add _compression_to_extension back for backwards compatibility
Skn0tt 8b8b8ac
fix some type warnings
Skn0tt dd356f6
fix: formatting
Skn0tt 514014a
fix: mypy complaints
Skn0tt 38971c7
fix: more tests
Skn0tt e35d361
fix: some error with xml
Skn0tt c5088fc
fix: interpreted text role
Skn0tt f6c5173
move to v1.5 whatsnw
Skn0tt 9a4fa07
add versionadded note
Skn0tt 0c31aa8
don't leave blank lines
Skn0tt 086c598
add tests for zero files / multiple files
Skn0tt 861faf0
move _compression_to_extension to tests
Skn0tt 9458ecb
revert added "mode" argument
Skn0tt d20f315
add test to ensure that `compression.mode` works
Skn0tt 1066f1b
Merge branch 'main' into read-tar-archives
Skn0tt 6b0e1e6
Merge branch 'main' into read-tar-archives
Skn0tt 0d9ed18
compare strings, not bytes
Skn0tt 37370c2
replace carriage returns
Skn0tt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this entire function could be replaced with a call to
get_handle
(not needed in this PR)