diff --git a/.gitignore b/.gitignore index cf864d6..848435f 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ /txaio-2.10.0.tar.gz /python-txaio-18.7.1-1.fc29.src.rpm /txaio-18.7.1.tar.gz +/txaio-18.8.1.tar.gz diff --git a/python-txaio.spec b/python-txaio.spec index db9c290..a749343 100644 --- a/python-txaio.spec +++ b/python-txaio.spec @@ -1,13 +1,13 @@ %global pypi_name txaio Name: python-%{pypi_name} -Version: 18.7.1 -Release: 2%{?dist} +Version: 18.8.1 +Release: 1%{?dist} Summary: Compatibility API between asyncio/Twisted/Trollius License: MIT URL: https://pypi.python.org/pypi/%{pypi_name} -Source0: https://files.pythonhosted.org/packages/0f/eb/87f67de6876f293122801a93baa21ed1cc6feb44d80ff17c989828cb8023/txaio-18.7.1.tar.gz +Source0: https://files.pythonhosted.org/packages/source/t/txaio/txaio-%{version}.tar.gz Patch0: python-txaio-skip-packaging-tests.patch # The test_utils module can no longer be imported from asyncio # and is undocumented intentionaly because it's private. @@ -136,6 +136,9 @@ PYTHONPATH=$PYTHONPATH:$(pwd):$(pwd)/test coverage2 run -p --source=txaio /usr/b %changelog +* Wed Feb 20 2019 Yatin Karel - 18.8.1-1 +- Update to 18.8.1 + * Sat Feb 02 2019 Fedora Release Engineering - 18.7.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild diff --git a/run_once.patch b/run_once.patch index b2fa092..c6df2c0 100644 --- a/run_once.patch +++ b/run_once.patch @@ -1,16 +1,32 @@ -Only in txaio-2.10.0_patched/test: .test_gather.py.swp -diff -ru txaio-2.10.0/test/util.py txaio-2.10.0_patched/test/util.py ---- txaio-2.10.0/test/util.py 2018-08-01 13:29:41.193234192 +0200 -+++ txaio-2.10.0_patched/test/util.py 2018-08-01 13:27:57.028789000 +0200 -@@ -38,7 +38,9 @@ - - try: +From ff27e91cd0e685add681850039ffc3cff35a06df Mon Sep 17 00:00:00 2001 +From: yatin +Date: Wed, 20 Feb 2019 12:54:41 +0530 +Subject: [PATCH] Patch _run_once + +--- + test/util.py | 8 ++++++-- + 1 file changed, 6 insertions(+), 2 deletions(-) + +diff --git a/test/util.py b/test/util.py +index 9f56778..8084b9c 100644 +--- a/test/util.py ++++ b/test/util.py +@@ -42,9 +42,13 @@ def run_once(): import asyncio -- from asyncio.test_utils import run_once as _run_once -+ def _run_once(loop): -+ loop.call_soon(loop.stop) -+ loop.run_forever() + if sys.version_info >= (3, 7): + # https://github.com/crossbario/txaio/issues/139 +- from _asyncio_test_utils import run_once as _run_once ++ def _run_once(loop): ++ loop.call_soon(loop.stop) ++ loop.run_forever() + else: +- from asyncio.test_utils import run_once as _run_once ++ def _run_once(loop): ++ loop.call_soon(loop.stop) ++ loop.run_forever() return _run_once(txaio.config.loop or asyncio.get_event_loop()) except ImportError: -Only in txaio-2.10.0_patched/test: .util.py.swp +-- +2.17.1 + diff --git a/sources b/sources index fef632a..772a500 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (txaio-18.7.1.tar.gz) = d88cc8862340d269470e91a3e2d60c5c3ca6e169e838069f690e35bbf07d3db516b59e0e76cb83cfd1217ca73c0705fdae451df3d9c69adc421579eb2f1b68d9 +SHA512 (txaio-18.8.1.tar.gz) = 5aa0024b32211534b0c673da13b092ba08e15195b3b016bc21104618605d5c0b49096fa2795e13d9d5c4247defa1d72f903cbcc8d00a21359825224faab64b64