From 590b9b7b03bf4651e099949e318755af7cfa81b8 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 1 Aug 2021 22:03:23 +0100 Subject: gentoo resync : 01.08.2021 --- dev-python/aiohttp/Manifest | 3 +- dev-python/aiohttp/aiohttp-3.7.4-r1.ebuild | 3 +- .../aiohttp/files/aiohttp-3.7.4-fix-py3.10.patch | 73 ++++++++++++++++++++++ 3 files changed, 77 insertions(+), 2 deletions(-) create mode 100644 dev-python/aiohttp/files/aiohttp-3.7.4-fix-py3.10.patch (limited to 'dev-python/aiohttp') diff --git a/dev-python/aiohttp/Manifest b/dev-python/aiohttp/Manifest index 2dd0ca3e7a7e..44dc0bf4edbc 100644 --- a/dev-python/aiohttp/Manifest +++ b/dev-python/aiohttp/Manifest @@ -1,4 +1,5 @@ AUX aiohttp-3.7.4-brotli.patch 3537 BLAKE2B dfb410aabbd24f16bb1cf5fe999e9730417ccaf7ea59cb48d0445abcfe757e0b9d165ea723152df8f54ff039ac092a0a6cc6d6bddfebcad44d8d63f4eb5c3c79 SHA512 6bf8969c57fc649f84dae9eacd79d5f13558bc970e8755dbf22dcc08789d2377d1f04a745becd3c533f3a6ceb459ddb6bab5eb39e1098468650b312c2ecd51c3 +AUX aiohttp-3.7.4-fix-py3.10.patch 2285 BLAKE2B 4d0841adb3e0038b1b361449812975e4f908e0813576dd3adf1f6d841e93adb514803629bb186304d44c92680d0b1529e3a2ca5a861766f856d32cc69edb18d4 SHA512 3cb863431c8175da625d429a6e275a6a3f932f162f9dc9c477f7038af302486698ee0665c3ab69111d277b9bd080d90e7b3e4f7a2c0a797e554c0cdac3f5cef2 DIST aiohttp-3.7.4.tar.gz 1114533 BLAKE2B dcae3e66e13df8264d731a3ca65b4718feca8d0e6e1baeb6608dcb9bfb4bd4baaed6bd34297ed5ece78d01189bf9a0b9860845cae4e2b93cc2ba463cc35cfb77 SHA512 66fcc837b388020dc998cbaa2db31e48ecec75bcfaa8af9108e2ea265588dafa5684ca96a8fe3ad6759b22e09a4ae6d4efd8653fb76126eccdc826c15cbbe2e6 -EBUILD aiohttp-3.7.4-r1.ebuild 3165 BLAKE2B 251953a98d2342392985e53c878a59177b75b032b9e443757c0c1195688b6a5bb2dd19fa0c66d4aaf2b583a8a460419eb6699f2dd2232f9d7e6f4de039b3c31d SHA512 c20675a6e456b7fb1ea0125e2c51fe7399ac466759c9f1b91e10364a667784605a8ae6e50a61c42f541030f6162c7397468513acdf163ac8d5ddf26ca284f946 +EBUILD aiohttp-3.7.4-r1.ebuild 3212 BLAKE2B 662c712aa1811f1d7e603e175ad958d2d87a8075e0fabcf0d157c1efaff634e8a3b7b6f56b2990447072127d2d843af82e44cba711b1fe00160c8ae5849baa1e SHA512 76fdadad383bdd3cb061da3314eda61c9ab325e157990f4469808526a350ee9ac319326237b26f635f565ab6a3ad0c44eba2108ccbdeeee4282a537dde0a750c MISC metadata.xml 489 BLAKE2B beb80da34848dfe7b81ed65d75923480644ecf42e2c5ce04a7f66f3e729651fdc6035054482aff966ec9f03cfbb812d3be0afd783af69e37f1002182e4885473 SHA512 d8c9e2edb8a57a3b6b02bb5314aef77dc266af6e80fd0300eb0652c59790232017d0062f5b7361b059c382d1c904f0f46cd0e672d1963e9595f3d4dc7514f182 diff --git a/dev-python/aiohttp/aiohttp-3.7.4-r1.ebuild b/dev-python/aiohttp/aiohttp-3.7.4-r1.ebuild index 3871075876e4..4c0cea0a0d1e 100644 --- a/dev-python/aiohttp/aiohttp-3.7.4-r1.ebuild +++ b/dev-python/aiohttp/aiohttp-3.7.4-r1.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_{8..9} ) +PYTHON_COMPAT=( python3_{8..10} ) inherit distutils-r1 multiprocessing @@ -42,6 +42,7 @@ BDEPEND=" PATCHES=( "${FILESDIR}"/aiohttp-3.7.4-brotli.patch + "${FILESDIR}"/aiohttp-3.7.4-fix-py3.10.patch ) DOCS=( CHANGES.rst CONTRIBUTORS.txt README.rst ) diff --git a/dev-python/aiohttp/files/aiohttp-3.7.4-fix-py3.10.patch b/dev-python/aiohttp/files/aiohttp-3.7.4-fix-py3.10.patch new file mode 100644 index 000000000000..3c7593584b76 --- /dev/null +++ b/dev-python/aiohttp/files/aiohttp-3.7.4-fix-py3.10.patch @@ -0,0 +1,73 @@ +commit ec87d9f2b6541599dd7fc8aaebf0fdfbb812ade7 +Author: Louis Sautier +Date: Tue Jul 20 23:37:27 2021 +0200 + + Remove deprecated loop argument from asyncio.sleep/gather calls + +diff --git a/aiohttp/web.py b/aiohttp/web.py +index 557e3c3b..52dfdf93 100644 +--- a/aiohttp/web.py ++++ b/aiohttp/web.py +@@ -441,7 +441,7 @@ def _cancel_tasks( + task.cancel() + + loop.run_until_complete( +- asyncio.gather(*to_cancel, loop=loop, return_exceptions=True) ++ asyncio.gather(*to_cancel, return_exceptions=True) + ) + + for task in to_cancel: +diff --git a/tests/test_locks.py b/tests/test_locks.py +index 55fd2330..5f434eac 100644 +--- a/tests/test_locks.py ++++ b/tests/test_locks.py +@@ -18,7 +18,7 @@ class TestEventResultOrError: + return 1 + + t = loop.create_task(c()) +- await asyncio.sleep(0, loop=loop) ++ await asyncio.sleep(0) + e = Exception() + ev.set(exc=e) + assert (await t) == e +@@ -31,7 +31,7 @@ class TestEventResultOrError: + return 1 + + t = loop.create_task(c()) +- await asyncio.sleep(0, loop=loop) ++ await asyncio.sleep(0) + ev.set() + assert (await t) == 1 + +@@ -43,7 +43,7 @@ class TestEventResultOrError: + + t1 = loop.create_task(c()) + t2 = loop.create_task(c()) +- await asyncio.sleep(0, loop=loop) ++ await asyncio.sleep(0) + ev.cancel() + ev.set() + +diff --git a/tests/test_proxy_functional.py b/tests/test_proxy_functional.py +index 68763cd4..65c773a1 100644 +--- a/tests/test_proxy_functional.py ++++ b/tests/test_proxy_functional.py +@@ -238,7 +238,7 @@ async def test_proxy_http_multi_conn_limit(proxy_test_server, loop) -> None: + resp = await sess.get(url, proxy=proxy.url) + + current_pid = pid +- await asyncio.sleep(0.2, loop=loop) ++ await asyncio.sleep(0.2) + assert current_pid == pid + + await resp.release() +@@ -443,7 +443,7 @@ async def xtest_proxy_https_multi_conn_limit(proxy_test_server, loop): + resp = await sess.get(url, proxy=proxy.url) + + current_pid = pid +- await asyncio.sleep(0.2, loop=loop) ++ await asyncio.sleep(0.2) + assert current_pid == pid + + await resp.release() + -- cgit v1.2.3