[arch-commits] Commit in python-aioitertools/trunk (PKGBUILD python310.patch)
Evangelos Foutras
foutrelis at gemini.archlinux.org
Thu Dec 2 11:38:12 UTC 2021
Date: Thursday, December 2, 2021 @ 11:38:11
Author: foutrelis
Revision: 1061592
Drop loop param from asyncio calls
Added:
python-aioitertools/trunk/python310.patch
Modified:
python-aioitertools/trunk/PKGBUILD
-----------------+
PKGBUILD | 7 +++++--
python310.patch | 37 +++++++++++++++++++++++++++++++++++++
2 files changed, 42 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-12-02 11:35:25 UTC (rev 1061591)
+++ PKGBUILD 2021-12-02 11:38:11 UTC (rev 1061592)
@@ -10,11 +10,14 @@
license=(MIT)
depends=(python)
makedepends=(python-setuptools)
-source=("https://files.pythonhosted.org/packages/source/a/$_pkgname/$_pkgname-$pkgver.tar.gz")
-sha256sums=('8b02facfbc9b0f1867739949a223f3d3267ed8663691cc95abd94e2c1d8c2b46')
+source=("https://files.pythonhosted.org/packages/source/a/$_pkgname/$_pkgname-$pkgver.tar.gz"
+ python310.patch)
+sha256sums=('8b02facfbc9b0f1867739949a223f3d3267ed8663691cc95abd94e2c1d8c2b46'
+ 'c45fcea71f7c551b0452cb4cdc30359b1724d4af74e818ec1793dfd31f940918')
prepare() {
cd $_pkgname-$pkgver
+ patch -Np1 -i ../python310.patch
# setup.py generated by flit uses setuptools-specific install_requires but
# imports setup() from distutils.core
# https://github.com/takluyver/flit/blob/2.3.0/flit/sdist.py#L16
Added: python310.patch
===================================================================
--- python310.patch (rev 0)
+++ python310.patch 2021-12-02 11:38:11 UTC (rev 1061592)
@@ -0,0 +1,37 @@
+diff -upr aioitertools-0.8.0.orig/aioitertools/asyncio.py aioitertools-0.8.0/aioitertools/asyncio.py
+--- aioitertools-0.8.0.orig/aioitertools/asyncio.py 2021-08-05 05:22:56.166504100 +0300
++++ aioitertools-0.8.0/aioitertools/asyncio.py 2021-12-02 13:35:33.052209921 +0200
+@@ -59,7 +59,6 @@ async def as_completed(
+ Tuple[Set[Awaitable[T]], Set[Awaitable[T]]],
+ await asyncio.wait(
+ pending,
+- loop=loop,
+ timeout=remaining,
+ return_when=asyncio.FIRST_COMPLETED,
+ ),
+@@ -124,7 +123,7 @@ async def gather(
+ if pending:
+ try:
+ done, pending = await asyncio.wait(
+- pending, loop=loop, return_when=asyncio.FIRST_COMPLETED
++ pending, return_when=asyncio.FIRST_COMPLETED
+ )
+ for x in done:
+ if return_exceptions and x.exception():
+@@ -136,7 +135,7 @@ async def gather(
+ for x in pending:
+ x.cancel()
+ # we insure that all tasks are cancelled before we raise
+- await asyncio.gather(*pending, loop=loop, return_exceptions=True)
++ await asyncio.gather(*pending, return_exceptions=True)
+ raise
+
+ if not pending and next_arg == len(args):
+@@ -162,7 +161,6 @@ async def gather_iter(
+ """
+ return await gather(
+ *[maybe_await(i) async for i in aiter(itr)],
+- loop=loop,
+ return_exceptions=return_exceptions,
+ limit=limit,
+ )
More information about the arch-commits
mailing list