Richard Young
a5f43e4a58
Attempt to fix API for 3.10 compatibility
3 years ago
Richard Young
4729258a40
Change default python version to the version I'm using
3 years ago
Richard Young
e3ccbaaee2
update version
3 years ago
Richard Young
22d911afef
symlink api
3 years ago
Richard Young
7cc1f0f34c
Merge branch 'master' of https://github.com/richnetdesign/python-libarchive
3 years ago
Richard Young
08704fd4eb
wip
3 years ago
Richard Young
1d1a212df1
hacking in some more api
3 years ago
Rich Young
2182fa0275
Merge pull request #1 from richnetdesign/richnetdesign-patch-1
symlink
3 years ago
Richard Young
e9597eaa2a
additional api
3 years ago
Rich Young
2cffae8dcd
symlink
3 years ago
Clifton Barnes
0c36b37214
Release 4.0.1
4 years ago
Clifton Barnes
e3dd6dfcb3
Merge pull request #12 from aaron-sierra/fix-guess_format-popen-stdout
Handle file-like objects with integer name attribute
4 years ago
Aaron Sierra
fcead6fb1d
Handle file-like objects with integer name attribute
When io.BufferedReader (and others) are init-ed based on a file
descriptor, their name attribute will be an integer. Handle these
objects by explicitly checking for an integer type in guess_format() and
setting sane values (empty strings).
We don't trap an exception because Python 2 and 3 throw different types;
AttributeError and TypeError, respectively. So, this way seemed cleaner.
4 years ago
Aaron Sierra
bdedb5d597
Fix Python 2 pathname type set by from_archive()
A trailing comma resulted in Entry.pathname being a tuple instead
of a string when using Entry.from_archive() in Python 2.
This partially reverts 5013165958
("Fix tests for python 2 and 3"),
which accounted for Entry.pathname as a tuple, instead of addressing why
it had become one.
This also adds whitespace around the assignment operator for Python 2
and 3 to look less like a keyword argument assignment (which appears to
be where the comma originally came from).
4 years ago
Aaron Sierra
6189b3020e
tests: Add high-level API test
Add a high-level API test that initially focuses on various ways that
an Archive object can be directed to use a particular file:
1. filename
2. file-like object opened by name
3. file-like object opened by fileno()
The 3rd way is currently broken for Python 2 and Python 3.
4 years ago
Aaron Sierra
024440569c
tests: Use native zipfile module
Instead of using an external utility (/usr/bin/zip) and a subprocess
call, use Python's own zipfile module to create temporary zip file.
4 years ago
Aaron Sierra
a9aaf242c8
tests: Add suffix to temporary directories
Currently, unit testing does not cleanup the temporary directory
structure that it creates. Make it more easily identifiable for manual
cleanup by adding a recognizable suffix.
4 years ago
Clifton Barnes
b839a05cf4
Fix error in README
4 years ago
Clifton Barnes
8eb32f4abd
Version 4.0.0
4 years ago
Clifton Barnes
cd7161aea7
Merge pull request #11 from smartfile/python3
Check if data is already bytes
4 years ago
Jessica Hair
c9f15fef84
Check if data is already bytes
5 years ago
Jessica Hair
59030cb6bf
Merge pull request #9 from smartfile/python3
Python 3
5 years ago
Clifton Barnes
d37e6b06b5
Use version from python
5 years ago
Clifton Barnes
8d95a43216
Use correct travis variable
5 years ago
Clifton Barnes
a80410112c
Setup pyenv environment
5 years ago
Clifton Barnes
d4d0c70515
Revert "Install python development libraries"
This reverts commit a2fe91f8cf
.
5 years ago
Clifton Barnes
a2fe91f8cf
Install python development libraries
5 years ago
Clifton Barnes
a823504ba2
Revert "Specify exact python version"
This reverts commit bf44649ce8
.
5 years ago
Clifton Barnes
bf44649ce8
Specify exact python version
5 years ago
Clifton Barnes
8c7a3bad15
Run tests for python 2 and 3
5 years ago
Clifton Barnes
7dd5e87bdf
Ignore built binary
5 years ago
Clifton Barnes
5013165958
Fix tests for python 2 and 3
5 years ago
Clifton Barnes
311a559c9c
Fix compilation procedure
5 years ago
Jessica Hair
bfe92166e5
Use open instead of file
5 years ago
Jessica Hair
2205c003d7
Use unicode instead of string in variable names
5 years ago
Jessica Hair
52b97691e0
Remove PyString and use PyUnicode
5 years ago
Jessica Hair
950ef2c4b0
use open instead of file
5 years ago
Jessica Hair
cdb7e6750a
Update to python 3
5 years ago
Travis Cunningham
652c422de4
Merge pull request #4 from smartfile/feature-write-directories
Added unittest for writing directories.
9 years ago
Travis Cunningham
b208154939
Fixed test for writing directories.
9 years ago
Travis Cunningham
4b835ce0d1
Updated test for writing directories.
9 years ago
Travis Cunningham
df60b0d6f0
Updated .gitignore to ignore development files.
9 years ago
Travis Cunningham
a61abdf6a6
Added unittest for writing directories.
9 years ago
Travis Cunningham
21cebe655e
Update .travis.yml
9 years ago
Ryan Johnston
eeb95116cc
Add option to set mode to folder.
Add option to set mode to folder.
9 years ago
Travis Cunningham
0339f9123e
Update .travis.yml
9 years ago
Travis Cunningham
d8c4e12bb9
Update .travis.yml
10 years ago
Travis Cunningham
b92cffd1dc
Update .travis.yml
Fixed installation of packages via pip
10 years ago
Travis Cunningham
e133faa090
Link against version 13 of libarchive rather than 13.1.2
10 years ago
Travis Cunningham
5b97a9d780
Added travis ci
10 years ago