From ae2a0dec1ff40d0ebf995489451fe2a9987d837f2397b1771c8ddded949e30b4 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 4 May 2022 09:27:39 +0000 Subject: [PATCH] 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 --- help.patch | 11 +++++++++++ python-rarfile.changes | 6 ++++++ python-rarfile.spec | 4 +++- 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 help.patch diff --git a/help.patch b/help.patch new file mode 100644 index 0000000..a161e2c --- /dev/null +++ b/help.patch @@ -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 + diff --git a/python-rarfile.changes b/python-rarfile.changes index 6d93dbd..e8071ae 100644 --- a/python-rarfile.changes +++ b/python-rarfile.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed May 4 06:25:49 UTC 2022 - Markéta Machová + +- 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 diff --git a/python-rarfile.spec b/python-rarfile.spec index 10ff738..fc59bf6 100644 --- a/python-rarfile.spec +++ b/python-rarfile.spec @@ -17,7 +17,6 @@ %define skip_python2 1 -%define skip_python310 1 Name: python-rarfile Version: 4.0 Release: 0 @@ -25,6 +24,8 @@ Summary: RAR Archive Reader for Python License: ISC URL: https://rarfile.readthedocs.org/ 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 setuptools} BuildRequires: bsdtar @@ -55,6 +56,7 @@ This package contains technical documentation. %prep %setup -q -n rarfile-%{version} +%autopatch -p1 %build %python_build