6 Commits

Author SHA256 Message Date
f802fda6fc Accepting request 1288107 from devel:languages:python
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/request/show/1288107
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-rarfile?expand=0&rev=10
2025-06-24 18:48:55 +00:00
59e09452c2 - Switch to pyproject macros.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rarfile?expand=0&rev=25
2025-06-24 02:23:24 +00:00
97c1a4136d Accepting request 1216919 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1216919
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-rarfile?expand=0&rev=9
2024-10-22 12:53:23 +00:00
7423e796aa Accepting request 1216905 from home:dimstar:Factory
- Do not BuildRequire unar: this seems unused during the build/test
  phase.

OBS-URL: https://build.opensuse.org/request/show/1216905
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rarfile?expand=0&rev=23
2024-10-22 07:17:18 +00:00
0990c85dc2 Accepting request 1185230 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1185230
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-rarfile?expand=0&rev=8
2024-07-04 14:26:27 +00:00
86f6b7a4cb Accepting request 1184025 from home:alois:branches:devel:languages:python
- Update to version 4.2
  Features:
  * Support unrar-free >= 0.2.0.
  * Add RarFile.is_solid to check if archive uses solid compression.
  Fixes:
  * Support old multi-volume archives better where ENDARC does
    not contain NEXTVOL.
  version 4.1:
  Features:
  * Support 7zip/p7zip as decompression backend.
  * RAR5: check password before trying to read file.
  New APIs:
  * Make get_rar_version a public function.
  * New option: ``part_only`` for :class:`RarFile`,
    to read only single file and allow it to be middle-part
    of multi-volume archive.
  * Add :meth:`RarFile.printdir`, use it in dumprar. Needed to
    examine FILE_COPY or HARD_LINK entries that do not contain
    data.
  Fixes:
  * Use OS separator to access filename.
  * DirectReader: check seek position on each read.
    Fixes read reading from multiple entries in parallel
    on RarFile backed by file object.
  * DirectReader: properly disable CRC check when seeking.
  * Reset _hdrenc_main before processing a new volume.
    Fixes CRC checks on multi-volume reads.
  * Adapt to Python 3.10 argparse.
  * SFX: Handle volume numbering special cases better.
  * nsdatetime: support pypy internal use
  * Throw error if backend does not support passwords.
  Cleanups:
  * Avoid isascii, not in 3.6
- Drop help.patch (merged upstream)

OBS-URL: https://build.opensuse.org/request/show/1184025
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rarfile?expand=0&rev=21
2024-07-03 19:49:41 +00:00
5 changed files with 64 additions and 27 deletions

View File

@@ -1,11 +0,0 @@
Index: rarfile-4.0/test/test_tool.py
===================================================================
--- rarfile-4.0.orig/test/test_tool.py
+++ rarfile-4.0/test/test_tool.py
@@ -116,5 +116,5 @@ def test_cli_extract(capsys, tmp_path):
def test_cli_help(capsys):
assert cli("--help") == 0
res = capsys.readouterr()
- assert "optional" in res.out
+ assert "option" in res.out

View File

@@ -1,3 +1,52 @@
-------------------------------------------------------------------
Tue Jun 24 02:21:52 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
-------------------------------------------------------------------
Tue Oct 22 06:44:49 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
- Do not BuildRequire unar: this seems unused during the build/test
phase.
-------------------------------------------------------------------
Sat Jun 29 17:30:32 UTC 2024 - Luigi Baldoni <aloisio@gmx.com>
- Update to version 4.2
Features:
* Support unrar-free >= 0.2.0.
* Add RarFile.is_solid to check if archive uses solid compression.
Fixes:
* Support old multi-volume archives better where ENDARC does
not contain NEXTVOL.
version 4.1:
Features:
* Support 7zip/p7zip as decompression backend.
* RAR5: check password before trying to read file.
New APIs:
* Make get_rar_version a public function.
* New option: ``part_only`` for :class:`RarFile`,
to read only single file and allow it to be middle-part
of multi-volume archive.
* Add :meth:`RarFile.printdir`, use it in dumprar. Needed to
examine FILE_COPY or HARD_LINK entries that do not contain
data.
Fixes:
* Use OS separator to access filename.
* DirectReader: check seek position on each read.
Fixes read reading from multiple entries in parallel
on RarFile backed by file object.
* DirectReader: properly disable CRC check when seeking.
* Reset _hdrenc_main before processing a new volume.
Fixes CRC checks on multi-volume reads.
* Adapt to Python 3.10 argparse.
* SFX: Handle volume numbering special cases better.
* nsdatetime: support pypy internal use
* Throw error if backend does not support passwords.
Cleanups:
* Avoid isascii, not in 3.6
- Drop help.patch (merged upstream)
------------------------------------------------------------------- -------------------------------------------------------------------
Wed May 4 06:25:49 UTC 2022 - Markéta Machová <mmachova@suse.com> Wed May 4 06:25:49 UTC 2022 - Markéta Machová <mmachova@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-rarfile # spec file for package python-rarfile
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -18,21 +18,21 @@
%define skip_python2 1 %define skip_python2 1
Name: python-rarfile Name: python-rarfile
Version: 4.0 Version: 4.2
Release: 0 Release: 0
Summary: RAR Archive Reader for Python Summary: RAR Archive Reader for Python
License: ISC License: ISC
URL: https://rarfile.readthedocs.org/ URL: https://rarfile.readthedocs.org/
Source0: https://files.pythonhosted.org/packages/source/r/rarfile/rarfile-%{version}.tar.gz Source0: https://files.pythonhosted.org/packages/source/r/rarfile/rarfile-%{version}.tar.gz
# https://github.com/markokr/rarfile/pull/85 BuildRequires: %{python_module pip}
Patch0: help.patch
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: 7zip
BuildRequires: bsdtar BuildRequires: bsdtar
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildRequires: python3-Sphinx >= 1.3 BuildRequires: python3-Sphinx >= 1.3
BuildRequires: unar
Requires: bsdtar Requires: bsdtar
Recommends: unar Recommends: unar
BuildArch: noarch BuildArch: noarch
@@ -55,26 +55,25 @@ Python module for RAR archive reading.
This package contains technical documentation. This package contains technical documentation.
%prep %prep
%setup -q -n rarfile-%{version} %autosetup -p1 -n rarfile-%{version}
%autopatch -p1
%build %build
%python_build %pyproject_wheel
%make_build -C doc html %make_build -C doc html
rm doc/_build/html/.buildinfo rm doc/_build/html/.buildinfo
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
%pytest %pytest -k "not (test_unrar_tool or test_reading or test_rar3_header_encryption)"
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%pycache_only %{python_sitelib}/__pycache__/rarfile.*.py* %pycache_only %{python_sitelib}/__pycache__/rarfile.*.pyc
%{python_sitelib}/rarfile.py* %{python_sitelib}/rarfile.py
%{python_sitelib}/rarfile-%{version}-py%{python_version}.egg-info %{python_sitelib}/rarfile-%{version}.dist-info
%files %{python_files doc} %files %{python_files doc}
%license LICENSE %license LICENSE

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:67548769229c5bda0827c1663dce3f54644f9dbfba4ae86d4da2b2afd3e602a1
size 148026

3
rarfile-4.2.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8e1c8e72d0845ad2b32a47ab11a719bc2e41165ec101fd4d3fe9e92aa3f469ef
size 153476