From 76b95ce162ff6f2f9b85015208dfa100512b25c640d81fb5f4f5b67a6add9a3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 5 Aug 2021 15:32:07 +0000 Subject: [PATCH 1/2] Accepting request 910345 from home:mcalabkova:branches:devel:languages:python - Add kwsyntax.patch to fix test failure with new decorator. OBS-URL: https://build.opensuse.org/request/show/910345 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=33 --- kwsyntax.patch | 13 +++++++++++++ python-mocket.changes | 5 +++++ python-mocket.spec | 2 ++ 3 files changed, 20 insertions(+) create mode 100644 kwsyntax.patch diff --git a/kwsyntax.patch b/kwsyntax.patch new file mode 100644 index 0000000..e1ba1c2 --- /dev/null +++ b/kwsyntax.patch @@ -0,0 +1,13 @@ +Index: mocket-3.9.42/mocket/mocket.py +=================================================================== +--- mocket-3.9.42.orig/mocket/mocket.py ++++ mocket-3.9.42/mocket/mocket.py +@@ -628,7 +628,7 @@ class Mocketizer(object): + t(*args, **kw) + return wrapper + +- return decorator.decorator(wrapper, test) ++ return decorator.decorator(wrapper, test, kwsyntax=True) + + + mocketize = Mocketizer.wrap diff --git a/python-mocket.changes b/python-mocket.changes index dd0e454..df61448 100644 --- a/python-mocket.changes +++ b/python-mocket.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Aug 5 15:22:22 UTC 2021 - Markéta Machová + +- Add kwsyntax.patch to fix test failure with new decorator. + ------------------------------------------------------------------- Sat Jul 3 20:16:19 UTC 2021 - Sebastian Wagner diff --git a/python-mocket.spec b/python-mocket.spec index ba1700d..de05476 100644 --- a/python-mocket.spec +++ b/python-mocket.spec @@ -32,6 +32,7 @@ Summary: Python socket mock framework License: BSD-3-Clause URL: https://github.com/mindflayer/python-mocket Source0: https://files.pythonhosted.org/packages/source/m/mocket/mocket-%{version}.tar.gz +Patch0: kwsyntax.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -80,6 +81,7 @@ included, with gevent/asyncio/SSL support. %prep %setup -q -n mocket-%{version} +%autopatch -p1 sed -i '/cov/ d' setup.cfg sed -i '/pipenv/ d' setup.py sed -i 's/==.*$//' requirements.txt From 217ccaf56499fe1aaba299ffc9a23263c80b157cdd8810682ddfd07d1a26b087 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 6 Aug 2021 07:03:17 +0000 Subject: [PATCH 2/2] unpin decorator OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=34 --- python-mocket.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-mocket.spec b/python-mocket.spec index de05476..fad8d4a 100644 --- a/python-mocket.spec +++ b/python-mocket.spec @@ -36,7 +36,7 @@ Patch0: kwsyntax.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-decorator < 5 +Requires: python-decorator Requires: python-http-parser >= 0.9.0 Requires: python-python-magic Requires: python-six