forked from pool/python-rarfile
Accepting request 974818 from home:mcalabkova:branches:devel:languages:python
- Add patch help.patch and enable Python 3.10 * https://github.com/markokr/rarfile/pull/85 OBS-URL: https://build.opensuse.org/request/show/974818 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rarfile?expand=0&rev=19
This commit is contained in:
11
help.patch
Normal file
11
help.patch
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
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
|
||||||
|
|
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed May 4 06:25:49 UTC 2022 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Add patch help.patch and enable Python 3.10
|
||||||
|
* https://github.com/markokr/rarfile/pull/85
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Feb 16 20:35:10 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
Wed Feb 16 20:35:10 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
|
|
||||||
%define skip_python2 1
|
%define skip_python2 1
|
||||||
%define skip_python310 1
|
|
||||||
Name: python-rarfile
|
Name: python-rarfile
|
||||||
Version: 4.0
|
Version: 4.0
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -25,6 +24,8 @@ 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
|
||||||
|
Patch0: help.patch
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: bsdtar
|
BuildRequires: bsdtar
|
||||||
@@ -55,6 +56,7 @@ This package contains technical documentation.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n rarfile-%{version}
|
%setup -q -n rarfile-%{version}
|
||||||
|
%autopatch -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
|
Reference in New Issue
Block a user