- Update to version 3.9.44:

- Update __init__.py
 - Removing the constraint for `decorator`.
 - Update __init__.py (#155)
 - Patch from PR #150 (Refactored the mocketize decorator) (#153)
   * Patch from PR #150. Thanks to @micheles form the hints.
   * Complete refactor for using `decorator>=5`.
 - Update README.rs

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=35
This commit is contained in:
Sebastian Wagner 2021-09-04 18:23:00 +00:00 committed by Git OBS Bridge
parent 217ccaf564
commit 067dae6989
5 changed files with 24 additions and 22 deletions

View File

@ -1,13 +0,0 @@
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

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:503937cc2480ba1a5c119b74c754d1b102eb126a90c34de50d9fb4eb975d74ef
size 74470

3
mocket-3.9.44.tar.gz Normal file
View File

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

View File

@ -1,3 +1,20 @@
-------------------------------------------------------------------
Sat Sep 4 18:19:20 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
- remove obsolete kwsyntax.patch.
-------------------------------------------------------------------
Sat Sep 4 18:10:11 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
- Update to version 3.9.44:
- Update __init__.py
- Removing the constraint for `decorator`.
- Update __init__.py (#155)
- Patch from PR #150 (Refactored the mocketize decorator) (#153)
* Patch from PR #150. Thanks to @micheles form the hints.
* Complete refactor for using `decorator>=5`.
- Update README.rs
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Aug 5 15:22:22 UTC 2021 - Markéta Machová <mmachova@suse.com> Thu Aug 5 15:22:22 UTC 2021 - Markéta Machová <mmachova@suse.com>

View File

@ -26,21 +26,20 @@
%bcond_with test %bcond_with test
%endif %endif
Name: python-mocket%{psuffix} Name: python-mocket%{psuffix}
Version: 3.9.42 Version: 3.9.44
Release: 0 Release: 0
Summary: Python socket mock framework Summary: Python socket mock framework
License: BSD-3-Clause License: BSD-3-Clause
URL: https://github.com/mindflayer/python-mocket URL: https://github.com/mindflayer/python-mocket
Source0: https://files.pythonhosted.org/packages/source/m/mocket/mocket-%{version}.tar.gz Source0: https://files.pythonhosted.org/packages/source/m/mocket/mocket-%{version}.tar.gz
Patch0: kwsyntax.patch
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-decorator Requires: python-decorator >= 4
Requires: python-http-parser >= 0.9.0 Requires: python-http-parser >= 0.9.0
Requires: python-python-magic Requires: python-python-magic >= 0.4.5
Requires: python-six Requires: python-six
Requires: python-urllib3 Requires: python-urllib3 >= 1.25.3
Suggests: python-gevent Suggests: python-gevent
Suggests: python-pook >= 0.2.1 Suggests: python-pook >= 0.2.1
Suggests: python-redis Suggests: python-redis
@ -81,7 +80,6 @@ included, with gevent/asyncio/SSL support.
%prep %prep
%setup -q -n mocket-%{version} %setup -q -n mocket-%{version}
%autopatch -p1
sed -i '/cov/ d' setup.cfg sed -i '/cov/ d' setup.cfg
sed -i '/pipenv/ d' setup.py sed -i '/pipenv/ d' setup.py
sed -i 's/==.*$//' requirements.txt sed -i 's/==.*$//' requirements.txt