From dc70e33a8bc6ae22a69b3d2f266d84dac1b98010 Mon Sep 17 00:00:00 2001 From: Julien Enselme Date: Aug 01 2018 19:08:22 +0000 Subject: Update to 18.7.1 --- diff --git a/.gitignore b/.gitignore index b1cfe30..cf864d6 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,5 @@ /txaio-2.8.2.tar.gz /txaio-2.9.0.tar.gz /txaio-2.10.0.tar.gz +/python-txaio-18.7.1-1.fc29.src.rpm +/txaio-18.7.1.tar.gz diff --git a/python-txaio.spec b/python-txaio.spec index e6159c3..826515f 100644 --- a/python-txaio.spec +++ b/python-txaio.spec @@ -1,14 +1,18 @@ %global pypi_name txaio Name: python-%{pypi_name} -Version: 2.10.0 +Version: 18.7.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/b8/87/efcae4040c2a0af9c871116a6dbf02ee582b396e6de3797fb30cdcc4a7e4/txaio-2.10.0.tar.gz +Source0: https://files.pythonhosted.org/packages/0f/eb/87f67de6876f293122801a93baa21ed1cc6feb44d80ff17c989828cb8023/txaio-18.7.1.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. +# This is a hack that calls stop on the loop soon after calling run_forever(). +Patch2: run_once.patch BuildArch: noarch BuildRequires: python2-devel @@ -80,6 +84,7 @@ asyncio. Documentation in html format. %prep %setup -qn %{pypi_name}-%{version} %patch0 +%patch2 -p1 # Remove upstream's egg-info rm -rf %{pypi_name}.egg-info @@ -133,6 +138,9 @@ PYTHONPATH=$PYTHONPATH:$(pwd):$(pwd)/test coverage2 run -p --source=txaio /usr/b %changelog +* Wed Aug 01 2018 Julien Enselme - 18.7.1-1 +- Update to 18.7.1 + * Sun Apr 15 2018 Julien Enselme - 2.10.0-1 - Update to 2.10.0 diff --git a/run_once.patch b/run_once.patch new file mode 100644 index 0000000..b2fa092 --- /dev/null +++ b/run_once.patch @@ -0,0 +1,16 @@ +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: + import asyncio +- 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 diff --git a/sources b/sources index 00cd1f5..fef632a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (txaio-2.10.0.tar.gz) = 45f85eca04dadc44f47bea0359902965db7c85892303b73d1c227b065965a1e83d8b3e555affcb8b43c6fdbd4d25c8d475d763c8ec8984f3e6fc1ad2befff6c4 +SHA512 (txaio-18.7.1.tar.gz) = d88cc8862340d269470e91a3e2d60c5c3ca6e169e838069f690e35bbf07d3db516b59e0e76cb83cfd1217ca73c0705fdae451df3d9c69adc421579eb2f1b68d9