Commit Graph

637 Commits

Author SHA1 Message Date
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
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
Bastian Kleineidam edadb31a2b Updated web meta data.
[ci skip]
2016-01-17 09:15:22 +01:00
Bastian Kleineidam 447637b798 Set release date
[ci skip]
2016-01-17 09:06:13 +01:00
Bastian Kleineidam 9e244db5f8 Remove unused function 2016-01-16 22:36:22 +01:00
Bastian Kleineidam 0dfc0d3eca Updated changelog
[ci skip]
2016-01-14 21:10:17 +01:00
Bastian Kleineidam 598d06a936 Improve docs on how to run patool on windows.
[ci skip]
2016-01-14 21:10:11 +01:00
Bastian Kleineidam d9f1372243 Print search path for archive formats. 2016-01-14 21:09:44 +01:00
Bastian Kleineidam d7c0bfa3a5 Add WinRAR to default search path on windows. 2016-01-14 21:09:18 +01:00
Bastian Kleineidam 1e95c7577c Bump up version 2016-01-14 21:08:53 +01:00
Bastian Kleineidam 64562ad02f Document pigz test error. 2016-01-10 09:18:49 +01:00
Bastian Kleineidam 4a4f32f4c3 Ignore pigz test errors for now 2016-01-10 08:38:45 +01:00
Bastian Kleineidam f9ade6aca9 Zopfli package is not available for testing. 2016-01-10 08:29:47 +01:00
Bastian Kleineidam 99ae3e6a4a Install more archive managers for testing 2016-01-10 08:27:16 +01:00
Bastian Kleineidam 9d262ebebe Updated file extensions of web page.
[ci skip]
2016-01-10 08:18:02 +01:00
Bastian Kleineidam 3f1b92d147 Updated web meta data.
[ci skip]
2016-01-09 21:15:42 +01:00
Bastian Kleineidam c05b75894f Specify files to check for copyright year 2016-01-09 21:14:46 +01:00
Bastian Kleineidam 049ed12d43 Updated copyright 2016-01-09 21:09:27 +01:00
Bastian Kleineidam 20c35a4822 Install p7zip .deb package in Travis tests. 2016-01-09 21:02:42 +01:00
Bastian Kleineidam 06166e7b1d Support comic book archives 2016-01-09 20:58:15 +01:00