Commit Graph

655 Commits

Author SHA1 Message Date
zmr aa7776875b skip file if have same file or passwd 2022-05-29 14:26:07 +08:00
Yaroslav Halchenko 4928f3fc50
Merge pull request #111 from andriyor/patch-1
add GitHub URL for PyPi
2022-03-02 14:01:35 -05:00
Andrii Oriekhov cf86fa8508 add GitHub URL for PyPi 2022-03-02 19:52:21 +02:00
Yaroslav Halchenko 9dc8fab254
Merge pull request #105 from a1346054/master
Minor cleanup
2022-02-09 21:27:10 -05:00
a1346054 ea715c6934 trim excess whitespace 2021-09-13 13:30:49 +00:00
a1346054 2199a6c1d0 fix spelling 2021-09-13 13:28:34 +00:00
a1346054 ed10159ca5 invoke python through /usr/bin/env
This allows use in virtualenvs, as well as on distros where
/usr/bin/python does not exist
2021-09-13 13:24:20 +00:00
a1346054 539869bba0 use https for links
all changed links verified to work
2021-09-13 13:23:55 +00:00
a1346054 71275332a9 use license file from gnu.org
Downloaded from:
https://www.gnu.org/licenses/gpl-3.0.txt
2021-09-13 13:23:30 +00:00
Yaroslav Halchenko 723006abd4
Merge pull request #93 from Swich1987/master
Added password support for all archivers
2021-02-18 09:32:54 -05:00
Vladimir Oprya d734e33886 Merge remote-tracking branch 'origin/master' 2021-02-18 10:06:04 +03:00
Vladimir Oprya d9cd295d07 Adding helper _maybe_add_password where it's possible, to centralize the logic of work with password. 2021-02-18 10:05:30 +03:00
Yaroslav Halchenko 54694fb23e
Merge pull request #98 from yarikoptic/rf-nopy2
RF: remove python2 as dependency/testing etc, declare 3.5 to be the minimal version
2021-02-17 15:00:22 -05:00
Yaroslav Halchenko 5acd423e99 RF: return back a bit more cumbersome invocation -- python is not found, heh 2021-02-17 14:17:32 -05:00
Yaroslav Halchenko 1af23cd78d ENH: add testing against 3.9 on travis 2021-02-17 11:58:21 -05:00
Yaroslav Halchenko 81a178b028 Declare python 3.5 to be the minimal version
python 2 is long gone.
Code in https://github.com/wummel/patool/pull/93 needs python3
2021-02-17 11:57:18 -05:00
Yaroslav Halchenko 8bb375e2f4
Merge pull request #96 from benjaminwinger/file_error_fix
File error fix
2021-02-17 11:50:32 -05:00
Benjamin Winger b1b44849d7
Added test for stripext 2021-01-25 11:37:41 -05:00
Benjamin Winger b576de0ef9
Fixed patoolib.util:stripext handling of compressed tar files 2021-01-25 11:35:12 -05:00
Benjamin Winger 0ae7b3ae53
Fall back to guess_mime_mimedb if file command fails in guess_mime_file 2021-01-25 09:23:32 -05:00
Vladimir Oprya de35c30d0b Adding helper _maybe_add_password where it's possible, to centralize the logic of work with password. 2020-11-21 12:01:30 +03:00
Vladimir Oprya 237b025afc Changed password support check from try...catch to check 'password' in inspect.signature(archive_cmdlist_func).parameters 2020-11-14 12:31:09 +03:00
Vladimir Oprya 3efaf35903 Added examples of using password settings 2020-11-04 13:08:37 +03:00
Vladimir Oprya 1d3e8e2c89 Added password support for all archivers, which support work with password: arc, arj, p7zip, py_zipfile, rar, unace, unalz, unzip, xdms. Added tests for those, which support creation and test files in data folder for it. 2020-11-04 12:43:12 +03:00
Yaroslav Halchenko 6b1f82e2d2
Merge pull request #88 from benjaminwinger/flac_fix
Fix flac CI error, remove testing with EOLed python, remove zoo installation, switch to bionic
2020-08-19 22:03:04 -04:00
Benjamin Winger df96736bf6
Set travis distribution to bionic
Fixes flac-related CI failures as discussed in #83
zoo is also no longer installed, as it is not provided by ubuntu repos
newer than xenial.
2020-08-19 21:56:23 -04:00
Yaroslav Halchenko d7e64d9fd6
Merge pull request #65 from yarikoptic/enh-codecov
ENH: run tests with coverage
2018-09-12 10:54:50 -04:00
Yaroslav Halchenko 2c2177464c ENH: actually submit coverage report to codecov 2018-09-12 10:42:36 -04:00
Yaroslav Halchenko 74a4b184e9 ENH(TST): remove -s from pytest run on travis -- floods too much 2018-09-12 10:42:36 -04:00
Yaroslav Halchenko 1bfcb11364 BF: no pytest helper on 3.3 as well 2018-09-12 10:37:47 -04:00
Yaroslav Halchenko 868ca90092 BF: on python 3.3 coverage/pytest are not cooperating - no coverage there 2018-09-12 10:33:08 -04:00
Yaroslav Halchenko 5d2638be3d ENH: test python 3.6 as well 2018-09-12 10:33:08 -04:00
Yaroslav Halchenko ad0af328f3 ENH: run tests with coverage 2018-09-12 10:33:03 -04:00
Yaroslav Halchenko 30716c1ea0
Merge pull request #60 from yarikoptic/bf-misc-cped
tar treats Windows paths (D:\file.tar) as local files. Fixes #42
2018-09-12 08:56:27 -04:00
Yaroslav Halchenko feaa387501
Merge pull request #64 from yarikoptic/bf-lzma
ENH: support pyliblzma bindings for Python2 which has no lzma built-in
2018-09-12 08:56:09 -04:00
Yaroslav Halchenko 71f5e31dc3
Merge pull request #59 from yarikoptic/fixup/nested-gzip
Fixup/nested gzip
2018-09-12 08:55:09 -04:00
Yaroslav Halchenko 403fe07063 BF: orange is no longer available from APT (last seen in wheezy) 2018-09-11 23:50:36 -04:00
Charles LeDoux eadc156170 Add tests for nested compression
Why:

* To ensure we don't try and unrar a rar.gz file.

This change addresses the need by:

* Adds test file archive.rar.gz
* Add mime check to ensure we get the mime of gzip, not rar.
2018-09-11 23:50:36 -04:00
Charles LeDoux 03018b4e5b Only return separate encoding if `program_supports_compression`
Why:

* To prevent archives such as archive.rar.gz from breaking patool.

This change addresses the need by:

* move program_supports_compression above the `import util` line
    * If we don't do this, we have a circular import.
* Import program_supports_compression into util.
* Only return separate mime and encoding if program_support_compression
  returns True.
* Otherwise return the mime of the encoding and no encoding.
* Add fixes so that current tests still pass.
    * In program_support_compression:
        - Test tar separately and check all supported tar wrappers.
    * In test_tar:
        - Add file requirement for compress in the compress check.
        - Otherwise tar tries and failes when compress isn't installed.
2018-09-11 23:50:36 -04:00
Yaroslav Halchenko c412699f66 BF: add --force-local ONLY to tar invocation
bsdtar apparently does not provide it, and I am not aware of the
other ones
2018-09-11 23:31:49 -04:00
S Anand cd8d80c314 tar treats Windows paths (D:\file.tar) as local files. Fixes #42
Apparently tar has capabilities for the extraction from remote locations
but in my (@yarikoptic) experience I have never ran into someone using it
since it requires some rmt server to be running etc.  So let's just favor
for files containing columns which are not generally forbidden.
2018-09-11 23:18:07 -04:00
Yaroslav Halchenko 544405bb18 ENH: travis - install pyliblzma on python2.7 2018-09-11 23:17:01 -04:00
Yaroslav Halchenko 3a5d6cbfa9 ENH: support pyliblzma bindings for Python2 which has no lzma built-in 2018-09-11 16:24:37 -04:00
Yaroslav Halchenko 087cd9ee33
Merge pull request #63 from yarikoptic/bf-man
BF(Travis): fixes for Travis
2018-09-11 15:26:38 -04:00
Yaroslav Halchenko a9f3ee3d63 BF: add application/jar -> zip mapping
On Ubuntu 14.04 it is reported instead of /java-archive for .apk.foo which
we test on
2018-09-11 12:50:15 -04:00
Yaroslav Halchenko 885544d13f BF: orange is no longer available from APT (last seen in wheezy) 2018-09-11 10:37:32 -04:00
Yaroslav Halchenko a79e2646ee
Merge pull request #62 from yarikoptic/bf-man
BF(DOC): escape - in the manpage examples
2018-09-11 10:37:22 -04:00
Abhijith PA 2bcfb98ca2 BF(DOC): escape - in the manpage examples
Origin: Debian https://sources.debian.org/patches/patool/1.12-3/hyphen.patch/
2018-09-11 10:29:26 -04:00
Charles LeDoux cadeb1ca9f Fix require_one_program to actually require only one
Why:

* Currently uses an any which means *all* programs will be required.

This change addresses the need by:

* Switchs the *all* to an *any* so that at least one is required
2017-12-27 18:26:50 -06:00
Charles LeDoux 4d1b37a58d Call instead of raise pytest.raise()
Why:

* pytest.raise is not an exception.
2017-12-27 18:26:50 -06:00