Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-taskgroup for 
openSUSE:Factory checked in at 2025-01-28 15:02:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-taskgroup (Old)
 and      /work/SRC/openSUSE:Factory/.python-taskgroup.new.2316 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-taskgroup"

Tue Jan 28 15:02:11 2025 rev:2 rq:1240807 version:0.2.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-taskgroup/python-taskgroup.changes        
2024-12-18 20:09:18.087174514 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-taskgroup.new.2316/python-taskgroup.changes  
    2025-01-28 15:02:12.489572746 +0100
@@ -1,0 +2,10 @@
+Tue Jan 28 11:14:53 UTC 2025 - John Paul Adrian Glaubitz 
<[email protected]>
+
+- Update to 0.2.2
+  * Update note about which version we backported from
+  * [pre-commit.ci] pre-commit autoupdate
+  * Restore support for 3.8
+  * Update news for 0.2.2
+- Use Python 3.11 on SLE-15 by default
+
+-------------------------------------------------------------------

Old:
----
  taskgroup-0.2.1.tar.gz

New:
----
  taskgroup-0.2.2.tar.gz

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

Other differences:
------------------
++++++ python-taskgroup.spec ++++++
--- /var/tmp/diff_new_pack.PB9ogg/_old  2025-01-28 15:02:13.045595732 +0100
+++ /var/tmp/diff_new_pack.PB9ogg/_new  2025-01-28 15:02:13.049595897 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-taskgroup
 #
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2025 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,9 @@
 #
 
 
+%{?sle15_python_module_pythons}
 Name:           python-taskgroup
-Version:        0.2.1
+Version:        0.2.2
 Release:        0
 Summary:        Backport of asyncio.TaskGroup, asyncio.Runner and 
asynciotimeout
 License:        MIT

++++++ taskgroup-0.2.1.tar.gz -> taskgroup-0.2.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/taskgroup-0.2.1/PKG-INFO new/taskgroup-0.2.2/PKG-INFO
--- old/taskgroup-0.2.1/PKG-INFO        1970-01-01 01:00:00.000000000 +0100
+++ new/taskgroup-0.2.2/PKG-INFO        1970-01-01 01:00:00.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.3
 Name: taskgroup
-Version: 0.2.1
+Version: 0.2.2
 Summary: backport of asyncio.TaskGroup, asyncio.Runner and asyncio.timeout
 Author-email: Thomas Grainger <[email protected]>
 Description-Content-Type: text/markdown
@@ -18,7 +18,7 @@
 ## background
 
 This is a backport of the TaskGroup, Runner and timeout code from
-Python 3.12a1 to Python 3.9, Python 3.10 and Python 3.11.
+Python 3.12.8 to Python 3.8, Python 3.9, Python 3.10 and Python 3.11.
 
 ## operation
 
@@ -44,6 +44,17 @@
 ```
 
 # changelog
+## 0.2.2
+### What's Changed
+* update note about which version we backported from by @graingert in 
https://github.com/graingert/taskgroup/pull/27
+* [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in 
https://github.com/graingert/taskgroup/pull/28
+* restore support for 3.8 by @graingert in 
https://github.com/graingert/taskgroup/pull/30
+
+### New Contributors
+* @pre-commit-ci made their first contribution in 
https://github.com/graingert/taskgroup/pull/28
+
+**Full Changelog**: 
https://github.com/graingert/taskgroup/compare/0.2.1...0.2.2
+
 ## 0.2.1
 ### What's Changed
 * make _Interceptor not abstract by @graingert in 
https://github.com/graingert/taskgroup/pull/25
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/taskgroup-0.2.1/README.md 
new/taskgroup-0.2.2/README.md
--- old/taskgroup-0.2.1/README.md       2024-12-15 16:37:48.854609300 +0100
+++ new/taskgroup-0.2.2/README.md       2025-01-03 10:23:37.102415800 +0100
@@ -7,7 +7,7 @@
 ## background
 
 This is a backport of the TaskGroup, Runner and timeout code from
-Python 3.12a1 to Python 3.9, Python 3.10 and Python 3.11.
+Python 3.12.8 to Python 3.8, Python 3.9, Python 3.10 and Python 3.11.
 
 ## operation
 
@@ -33,6 +33,17 @@
 ```
 
 # changelog
+## 0.2.2
+### What's Changed
+* update note about which version we backported from by @graingert in 
https://github.com/graingert/taskgroup/pull/27
+* [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in 
https://github.com/graingert/taskgroup/pull/28
+* restore support for 3.8 by @graingert in 
https://github.com/graingert/taskgroup/pull/30
+
+### New Contributors
+* @pre-commit-ci made their first contribution in 
https://github.com/graingert/taskgroup/pull/28
+
+**Full Changelog**: 
https://github.com/graingert/taskgroup/compare/0.2.1...0.2.2
+
 ## 0.2.1
 ### What's Changed
 * make _Interceptor not abstract by @graingert in 
https://github.com/graingert/taskgroup/pull/25
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/taskgroup-0.2.1/pyproject.toml 
new/taskgroup-0.2.2/pyproject.toml
--- old/taskgroup-0.2.1/pyproject.toml  2024-12-15 16:37:48.854609300 +0100
+++ new/taskgroup-0.2.2/pyproject.toml  2025-01-03 10:23:37.102415800 +0100
@@ -10,6 +10,7 @@
 dynamic = ["version", "description"]
 dependencies = ["exceptiongroup", "typing_extensions>=4.12.2,<5"]
 readme = "README.md"
+requires_python = ">=3.8"
 
 [project.urls]
 Home = "https://github.com/graingert/taskgroup";
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/taskgroup-0.2.1/taskgroup/__init__.py 
new/taskgroup-0.2.2/taskgroup/__init__.py
--- old/taskgroup-0.2.1/taskgroup/__init__.py   2024-12-15 16:37:48.854609300 
+0100
+++ new/taskgroup-0.2.2/taskgroup/__init__.py   2025-01-03 10:23:37.102415800 
+0100
@@ -2,7 +2,7 @@
 backport of asyncio.TaskGroup, asyncio.Runner and asyncio.timeout
 """
 
-__version__ = "0.2.1"
+__version__ = "0.2.2"
 
 __all__ = ["run", "Runner", "TaskGroup", "Timeout", "timeout", "timeout_at"]
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/taskgroup-0.2.1/taskgroup/install.py 
new/taskgroup-0.2.2/taskgroup/install.py
--- old/taskgroup-0.2.1/taskgroup/install.py    2024-12-15 16:37:48.854609300 
+0100
+++ new/taskgroup-0.2.2/taskgroup/install.py    2025-01-03 10:23:37.102415800 
+0100
@@ -1,6 +1,6 @@
+import sys
 import contextvars
 import asyncio
-import collections.abc
 import contextlib
 import types
 from typing import cast
@@ -9,6 +9,11 @@
 
 from typing_extensions import Self, TypeVar
 
+if sys.version_info >= (3, 9):
+    from collections.abc import Generator, Coroutine
+else:
+    from typing import Generator, Coroutine
+
 
 UNCANCEL_DONE = object()
 
@@ -49,12 +54,12 @@
 
 
 class WrapCoro(
-    collections.abc.Generator[_YieldT_co, _SendT_contra_nd, _ReturnT_co_nd],
-    collections.abc.Coroutine[_YieldT_co, _SendT_contra_nd, _ReturnT_co_nd],
+    Generator[_YieldT_co, _SendT_contra_nd, _ReturnT_co_nd],
+    Coroutine[_YieldT_co, _SendT_contra_nd, _ReturnT_co_nd],
 ):
     def __init__(
         self,
-        coro: collections.abc.Coroutine[_YieldT_co, _SendT_contra_nd, 
_ReturnT_co_nd],
+        coro: Coroutine[_YieldT_co, _SendT_contra_nd, _ReturnT_co_nd],
         context: contextvars.Context,
     ):
         self._coro = coro
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/taskgroup-0.2.1/taskgroup/runners.py 
new/taskgroup-0.2.2/taskgroup/runners.py
--- old/taskgroup-0.2.1/taskgroup/runners.py    2024-12-15 16:37:48.854609300 
+0100
+++ new/taskgroup-0.2.2/taskgroup/runners.py    2025-01-03 10:23:37.102415800 
+0100
@@ -95,7 +95,7 @@
                 loop.run_until_complete(
                     
loop.shutdown_default_executor(constants.THREAD_JOIN_TIMEOUT)  # type: ignore
                 )
-            else:
+            elif sys.version_info >= (3, 9):
                 loop.run_until_complete(loop.shutdown_default_executor())
         finally:
             if self._set_event_loop:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/taskgroup-0.2.1/taskgroup/taskgroups.py 
new/taskgroup-0.2.2/taskgroup/taskgroups.py
--- old/taskgroup-0.2.1/taskgroup/taskgroups.py 2024-12-15 16:37:48.854609300 
+0100
+++ new/taskgroup-0.2.2/taskgroup/taskgroups.py 2025-01-03 10:23:37.102415800 
+0100
@@ -7,7 +7,6 @@
 
 __all__ = ["TaskGroup"]
 import sys
-import collections.abc
 from types import TracebackType
 from asyncio import events
 from asyncio import exceptions
@@ -24,6 +23,11 @@
 from typing_extensions import Self, TypeAlias, Literal, TypeVar
 import contextlib
 
+if sys.version_info >= (3, 9):
+    from collections.abc import Generator, Coroutine, Awaitable
+else:
+    from typing import Generator, Coroutine, Awaitable
+
 
 _T = TypeVar("_T")
 
@@ -35,15 +39,19 @@
 
 _T = TypeVar("_T")
 _T_co = TypeVar("_T_co", covariant=True)
-_TaskYieldType: TypeAlias = Optional[futures.Future[object]]
+_TaskYieldType: TypeAlias = "futures.Future[object] | None"
 
 if sys.version_info >= (3, 12):
-    _TaskCompatibleCoro: TypeAlias = collections.abc.Coroutine[Any, Any, _T_co]
-else:
+    _TaskCompatibleCoro: TypeAlias = Coroutine[Any, Any, _T_co]
+elif sys.version_info >= (3, 9):
     _TaskCompatibleCoro: TypeAlias = Union[
-        collections.abc.Generator[_TaskYieldType, None, _T_co],
-        collections.abc.Coroutine[Any, Any, _T_co],
+        Generator[_TaskYieldType, None, _T_co],
+        Coroutine[Any, Any, _T_co],
     ]
+else:
+    _TaskCompatibleCoro: TypeAlias = (
+        "Generator[_TaskYieldType, None, _T_co] | Awaitable[_T_co]"
+    )
 
 
 class _TaskGroup:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/taskgroup-0.2.1/taskgroup/tasks.py 
new/taskgroup-0.2.2/taskgroup/tasks.py
--- old/taskgroup-0.2.1/taskgroup/tasks.py      2024-12-15 16:37:48.854609300 
+0100
+++ new/taskgroup-0.2.2/taskgroup/tasks.py      2025-01-03 10:23:37.102415800 
+0100
@@ -1,12 +1,16 @@
 from __future__ import annotations
 
 import asyncio
-import collections.abc
 import contextvars
-from typing import Any, Optional, Union
+from typing import Any, Union, TYPE_CHECKING, Generic
 from typing_extensions import TypeAlias, TypeVar, Self
 import sys
 
+if sys.version_info >= (3, 9):
+    from collections.abc import Generator, Coroutine, Awaitable
+else:
+    from typing import Generator, Coroutine, Awaitable
+
 _YieldT_co = TypeVar("_YieldT_co", covariant=True)
 _SendT_contra = TypeVar("_SendT_contra", contravariant=True, default=None)
 _ReturnT_co = TypeVar("_ReturnT_co", covariant=True, default=None)
@@ -15,26 +19,30 @@
 
 _T = TypeVar("_T")
 _T_co = TypeVar("_T_co", covariant=True)
-_TaskYieldType: TypeAlias = Optional[asyncio.Future[object]]
+_TaskYieldType: TypeAlias = "asyncio.Future[object] | None"
 
 if sys.version_info >= (3, 12):
-    _TaskCompatibleCoro: TypeAlias = collections.abc.Coroutine[Any, Any, _T_co]
-else:
+    _TaskCompatibleCoro: TypeAlias = Coroutine[Any, Any, _T_co]
+elif sys.version_info >= (3, 9):
     _TaskCompatibleCoro: TypeAlias = Union[
-        collections.abc.Generator[_TaskYieldType, None, _T_co],
-        collections.abc.Coroutine[Any, Any, _T_co],
+        Generator[_TaskYieldType, None, _T_co],
+        Coroutine[Any, Any, _T_co],
     ]
+else:
+    _TaskCompatibleCoro: TypeAlias = (
+        "Generator[_TaskYieldType, None, _T_co] | Awaitable[_T_co]"
+    )
 
 
 class _Interceptor(
-    collections.abc.Generator[_YieldT_co, _SendT_contra_nd, _ReturnT_co_nd],
-    collections.abc.Coroutine[_YieldT_co, _SendT_contra_nd, _ReturnT_co_nd],
+    Generator[_YieldT_co, _SendT_contra_nd, _ReturnT_co_nd],
+    Coroutine[_YieldT_co, _SendT_contra_nd, _ReturnT_co_nd],
 ):
     def __init__(
         self,
         coro: (
-            collections.abc.Coroutine[_YieldT_co, _SendT_contra_nd, 
_ReturnT_co_nd]
-            | collections.abc.Generator[_YieldT_co, _SendT_contra_nd, 
_ReturnT_co_nd]
+            Coroutine[_YieldT_co, _SendT_contra_nd, _ReturnT_co_nd]
+            | Generator[_YieldT_co, _SendT_contra_nd, _ReturnT_co_nd]
         ),
         context: contextvars.Context,
     ):
@@ -57,7 +65,21 @@
         super().close()
 
 
-class Task(asyncio.Task[_T_co]):
+if TYPE_CHECKING:
+
+    class _Task(asyncio.Task[_T_co]):
+        pass
+
+
+elif sys.version_info >= (3, 9):
+    _Task = asyncio.Task
+else:
+
+    class _Task(asyncio.Task, Generic[_T_co]):
+        pass
+
+
+class Task(_Task[_T_co]):
     def __init__(
         self, coro: _TaskCompatibleCoro[_T_co], *args, context=None, **kwargs
     ) -> None:

Reply via email to