From dfbdde2fcb330407b25a90597fd6fc5b97822dd3163e89fae49e7a7e481b470d Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Fri, 13 Jan 2023 06:35:51 +0000 Subject: [PATCH] - Remove py311-compat.patch, not needed anymore - Update to 1.1.1: * Fix Py3.11 compatibility (#85) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pook?expand=0&rev=13 --- pook-1.1.0.tar.gz | 3 --- pook-1.1.1.tar.gz | 3 +++ py311-compat.patch | 38 -------------------------------------- python-pook.changes | 7 +++++++ python-pook.spec | 4 +--- 5 files changed, 11 insertions(+), 44 deletions(-) delete mode 100644 pook-1.1.0.tar.gz create mode 100644 pook-1.1.1.tar.gz delete mode 100644 py311-compat.patch diff --git a/pook-1.1.0.tar.gz b/pook-1.1.0.tar.gz deleted file mode 100644 index a79b939..0000000 --- a/pook-1.1.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bda6e301706945e9769bf5aaba01063229aadd7bc6c244a83e2257ece695536c -size 41879 diff --git a/pook-1.1.1.tar.gz b/pook-1.1.1.tar.gz new file mode 100644 index 0000000..f9d16dc --- /dev/null +++ b/pook-1.1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:53da04930616d94eeede77a39d6b5f0fac1f7bbd160d8f54bc468cd798b93956 +size 41904 diff --git a/py311-compat.patch b/py311-compat.patch deleted file mode 100644 index 8e3e173..0000000 --- a/py311-compat.patch +++ /dev/null @@ -1,38 +0,0 @@ -Index: pook-1.1.0/pook/activate_async.py -=================================================================== ---- pook-1.1.0.orig/pook/activate_async.py -+++ pook-1.1.0/pook/activate_async.py -@@ -1,5 +1,5 @@ - import functools --from asyncio import iscoroutinefunction, coroutine -+from asyncio import iscoroutinefunction - - - def activate_async(fn, _engine): -@@ -13,13 +13,13 @@ def activate_async(fn, _engine): - Returns: - function: decorator wrapper function. - """ -- @coroutine - @functools.wraps(fn) -- def wrapper(*args, **kw): -+ async def wrapper(*args, **kw): - _engine.activate() - try: - if iscoroutinefunction(fn): -- yield from fn(*args, **kw) # noqa -+ async for v in fn(*args, **kw): -+ yield v - else: - fn(*args, **kw) - finally: -Index: pook-1.1.0/tests/unit/mock_test.py -=================================================================== ---- pook-1.1.0.orig/tests/unit/mock_test.py -+++ pook-1.1.0/tests/unit/mock_test.py -@@ -19,4 +19,4 @@ def test_mock_url(mock): - - - def test_new_response(mock): -- assert(mock.reply() != mock.reply(new_response=True, json={})) -+ assert mock.reply() != mock.reply(new_response=True, json={}) diff --git a/python-pook.changes b/python-pook.changes index ab4c3f7..8230fd8 100644 --- a/python-pook.changes +++ b/python-pook.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Jan 13 06:33:49 UTC 2023 - Daniel Garcia + +- Remove py311-compat.patch, not needed anymore +- Update to 1.1.1: + * Fix Py3.11 compatibility (#85) + ------------------------------------------------------------------- Thu Jan 12 11:04:56 UTC 2023 - Daniel Garcia diff --git a/python-pook.spec b/python-pook.spec index 22e6b00..0b211b3 100644 --- a/python-pook.spec +++ b/python-pook.spec @@ -19,14 +19,12 @@ # requires python-aiohttp %define skip_python2 1 Name: python-pook -Version: 1.1.0 +Version: 1.1.1 Release: 0 Summary: HTTP traffic mocking and expectations License: MIT URL: https://github.com/h2non/pook Source: https://files.pythonhosted.org/packages/source/p/pook/pook-%{version}.tar.gz -# PATCH-FIX-OPENSUSE py311-compat.patch gh#h2non/pook#83 -Patch: py311-compat.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros