Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-anyio for openSUSE:Factory 
checked in at 2023-03-08 14:51:18
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-anyio (Old)
 and      /work/SRC/openSUSE:Factory/.python-anyio.new.31432 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-anyio"

Wed Mar  8 14:51:18 2023 rev:13 rq:1069824 version:3.6.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-anyio/python-anyio.changes        
2022-12-17 20:36:36.784627358 +0100
+++ /work/SRC/openSUSE:Factory/.python-anyio.new.31432/python-anyio.changes     
2023-03-08 14:51:20.490273821 +0100
@@ -1,0 +2,6 @@
+Tue Mar  7 06:29:28 UTC 2023 - Steve Kowalik <steven.kowa...@suse.com>
+
+- Add patc support-trio-0.22.patch:
+  * Support trio >= 0.22 just enough for asyncclick.
+
+-------------------------------------------------------------------

New:
----
  support-trio-0.22.patch

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

Other differences:
------------------
++++++ python-anyio.spec ++++++
--- /var/tmp/diff_new_pack.2Zoth8/_old  2023-03-08 14:51:21.322278351 +0100
+++ /var/tmp/diff_new_pack.2Zoth8/_new  2023-03-08 14:51:21.326278373 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-anyio
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,8 +16,6 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%define skip_python2 1
 Name:           python-anyio
 Version:        3.6.2
 Release:        0
@@ -25,6 +23,8 @@
 License:        MIT
 URL:            https://github.com/agronholm/anyio
 Source:         
https://files.pythonhosted.org/packages/source/a/anyio/anyio-%{version}.tar.gz
+# PATCH-FIX-OPENSUSE Support trio >= 0.22 just enough for asyncclick
+Patch0:         support-trio-0.22.patch
 BuildRequires:  %{python_module contextlib2 if %python-base < 3.7}
 BuildRequires:  %{python_module dataclasses if %python-base < 3.7}
 BuildRequires:  %{python_module idna >= 2.8}

++++++ support-trio-0.22.patch ++++++
Index: anyio-3.6.2/src/anyio/_backends/_trio.py
===================================================================
--- anyio-3.6.2.orig/src/anyio/_backends/_trio.py
+++ anyio-3.6.2/src/anyio/_backends/_trio.py
@@ -161,7 +161,7 @@ current_time = trio.current_time
 #
 
 
-class ExceptionGroup(BaseExceptionGroup, trio.MultiError):
+class ExceptionGroup(BaseExceptionGroup):
     pass
 
 
@@ -185,7 +185,7 @@ class TaskGroup(abc.TaskGroup):
     ) -> Optional[bool]:
         try:
             return await self._nursery_manager.__aexit__(exc_type, exc_val, 
exc_tb)
-        except trio.MultiError as exc:
+        except ExceptionGroup as exc:
             raise ExceptionGroup(exc.exceptions) from None
         finally:
             self._active = False

Reply via email to