Accepting request 1069824 from devel:languages:python
- Add patc support-trio-0.22.patch: * Support trio >= 0.22 just enough for asyncclick. OBS-URL: https://build.opensuse.org/request/show/1069824 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-anyio?expand=0&rev=13
This commit is contained in:
commit
93a66b92d1
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Mar 7 06:29:28 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Add patc support-trio-0.22.patch:
|
||||||
|
* Support trio >= 0.22 just enough for asyncclick.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Dec 16 15:06:08 UTC 2022 - Markéta Machová <mmachova@suse.com>
|
Fri Dec 16 15:06:08 UTC 2022 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-anyio
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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
|
Name: python-anyio
|
||||||
Version: 3.6.2
|
Version: 3.6.2
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -25,6 +23,8 @@ Summary: High level compatibility layer for asynchronous event loop imple
|
|||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/agronholm/anyio
|
URL: https://github.com/agronholm/anyio
|
||||||
Source: https://files.pythonhosted.org/packages/source/a/anyio/anyio-%{version}.tar.gz
|
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 contextlib2 if %python-base < 3.7}
|
||||||
BuildRequires: %{python_module dataclasses if %python-base < 3.7}
|
BuildRequires: %{python_module dataclasses if %python-base < 3.7}
|
||||||
BuildRequires: %{python_module idna >= 2.8}
|
BuildRequires: %{python_module idna >= 2.8}
|
||||||
|
22
support-trio-0.22.patch
Normal file
22
support-trio-0.22.patch
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
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
|
Loading…
x
Reference in New Issue
Block a user