Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-aioitertools for 
openSUSE:Factory checked in at 2022-01-07 12:46:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-aioitertools (Old)
 and      /work/SRC/openSUSE:Factory/.python-aioitertools.new.1896 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-aioitertools"

Fri Jan  7 12:46:16 2022 rev:4 rq:944565 version:0.8.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-aioitertools/python-aioitertools.changes  
2021-08-28 22:29:49.402018971 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-aioitertools.new.1896/python-aioitertools.changes
        2022-01-07 12:47:46.339903415 +0100
@@ -1,0 +2,6 @@
+Thu Jan  6 22:21:54 UTC 2022 - Ben Greiner <c...@bnavigator.de>
+
+- Add aioitertools-remove-loop.patch for python310 compatibility
+  gh#omnilib/aioitertools#84
+
+-------------------------------------------------------------------

New:
----
  aioitertools-remove-loop.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-aioitertools.spec ++++++
--- /var/tmp/diff_new_pack.Xfkm6b/_old  2022-01-07 12:47:46.731903687 +0100
+++ /var/tmp/diff_new_pack.Xfkm6b/_new  2022-01-07 12:47:46.735903690 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-aioitertools
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,22 +16,26 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%{?!python_module:%define python_module() python3-%{**}}
 %define skip_python2 1
 Name:           python-aioitertools
 Version:        0.8.0
 Release:        0
-Summary:        itertools and builtins for AsyncIO and mixed iterables
+Summary:        Itertools and builtins for AsyncIO and mixed iterables
 License:        MIT
 Group:          Development/Languages/Python
 URL:            https://aioitertools.omnilib.dev
 Source:         
https://files.pythonhosted.org/packages/source/a/aioitertools/aioitertools-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM aioitertools-remove-loop.patch -- 
gh#omnilib/aioitertools#84
+Patch0:         aioitertools-remove-loop.patch
 BuildRequires:  %{python_module asyncio}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module typing_extensions if %python-base < 3.8}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-Requires:       (python3-typing_extensions >= 3.7 if python3-base < 3.8)
+%if 0%{?python_version_nodots} < 38
+Requires:       python-typing_extensions >= 3.7
+%endif
 BuildArch:      noarch
 %python_subpackages
 
@@ -49,11 +53,12 @@
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
-%pyunittest discover -v
+%pyunittest -v
 
 %files %{python_files}
 %doc README.md CHANGELOG.md
 %license LICENSE
-%{python_sitelib}/*
+%{python_sitelib}/aioitertools
+%{python_sitelib}/aioitertools-%{version}*-info
 
 %changelog

++++++ aioitertools-remove-loop.patch ++++++
diff --git a/aioitertools/asyncio.py b/aioitertools/asyncio.py
index 663c818..4bc800b 100644
--- a/aioitertools/asyncio.py
+++ b/aioitertools/asyncio.py
@@ -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,
     )

Reply via email to