[arch-commits] Commit in python-aioitertools/repos/community-staging-any (3 files)

Evangelos Foutras foutrelis at gemini.archlinux.org
Thu Dec 2 11:38:51 UTC 2021


    Date: Thursday, December 2, 2021 @ 11:38:51
  Author: foutrelis
Revision: 1061594

archrelease: copy trunk to community-staging-any

Added:
  python-aioitertools/repos/community-staging-any/PKGBUILD
    (from rev 1061593, python-aioitertools/trunk/PKGBUILD)
  python-aioitertools/repos/community-staging-any/python310.patch
    (from rev 1061593, python-aioitertools/trunk/python310.patch)
Deleted:
  python-aioitertools/repos/community-staging-any/PKGBUILD

-----------------+
 PKGBUILD        |   79 ++++++++++++++++++++++++++++--------------------------
 python310.patch |   37 +++++++++++++++++++++++++
 2 files changed, 78 insertions(+), 38 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-02 11:38:46 UTC (rev 1061593)
+++ PKGBUILD	2021-12-02 11:38:51 UTC (rev 1061594)
@@ -1,38 +0,0 @@
-# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
-
-pkgname=python-aioitertools
-_pkgname=aioitertools
-pkgver=0.8.0
-pkgrel=2
-pkgdesc='Implementation of itertools, builtins, and more for AsyncIO and mixed-type iterables'
-arch=(any)
-url='https://github.com/omnilib/aioitertools'
-license=(MIT)
-depends=(python)
-makedepends=(python-setuptools)
-source=("https://files.pythonhosted.org/packages/source/a/$_pkgname/$_pkgname-$pkgver.tar.gz")
-sha256sums=('8b02facfbc9b0f1867739949a223f3d3267ed8663691cc95abd94e2c1d8c2b46')
-
-prepare() {
-  cd $_pkgname-$pkgver
-  # 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
-  sed -i 's#distutils.core#setuptools#' setup.py
-}
-
-build() {
-  cd $_pkgname-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd $_pkgname-$pkgver
-  python -m unittest -v aioitertools.tests
-}
-
-package() {
-  cd $_pkgname-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
-}

Copied: python-aioitertools/repos/community-staging-any/PKGBUILD (from rev 1061593, python-aioitertools/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-12-02 11:38:51 UTC (rev 1061594)
@@ -0,0 +1,41 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+
+pkgname=python-aioitertools
+_pkgname=aioitertools
+pkgver=0.8.0
+pkgrel=3
+pkgdesc='Implementation of itertools, builtins, and more for AsyncIO and mixed-type iterables'
+arch=(any)
+url='https://github.com/omnilib/aioitertools'
+license=(MIT)
+depends=(python)
+makedepends=(python-setuptools)
+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
+  sed -i 's#distutils.core#setuptools#' setup.py
+}
+
+build() {
+  cd $_pkgname-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd $_pkgname-$pkgver
+  python -m unittest -v aioitertools.tests
+}
+
+package() {
+  cd $_pkgname-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}

Copied: python-aioitertools/repos/community-staging-any/python310.patch (from rev 1061593, python-aioitertools/trunk/python310.patch)
===================================================================
--- python310.patch	                        (rev 0)
+++ python310.patch	2021-12-02 11:38:51 UTC (rev 1061594)
@@ -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