Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-stack-data for 
openSUSE:Factory checked in at 2023-05-19 11:55:19
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-stack-data (Old)
 and      /work/SRC/openSUSE:Factory/.python-stack-data.new.1533 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-stack-data"

Fri May 19 11:55:19 2023 rev:6 rq:1087190 version:0.6.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-stack-data/python-stack-data.changes      
2023-05-09 13:06:19.796661042 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-stack-data.new.1533/python-stack-data.changes
    2023-05-19 11:55:50.995375965 +0200
@@ -1,0 +2,6 @@
+Mon May 15 09:53:06 UTC 2023 - Steve Kowalik <steven.kowa...@suse.com>
+
+- Add patch support-typeguard-4.patch:
+  * Support typeguard 4+.
+
+-------------------------------------------------------------------

New:
----
  support-typeguard-4.patch

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

Other differences:
------------------
++++++ python-stack-data.spec ++++++
--- /var/tmp/diff_new_pack.207wkq/_old  2023-05-19 11:55:51.651379716 +0200
+++ /var/tmp/diff_new_pack.207wkq/_new  2023-05-19 11:55:51.655379739 +0200
@@ -24,6 +24,8 @@
 License:        MIT
 URL:            https://github.com/alexmojaki/stack_data
 Source:         
https://files.pythonhosted.org/packages/source/s/stack_data/stack_data-%{version}.tar.gz
+# PATCH-FIX-OPENSUSE Support typeguard 4+
+Patch0:         support-typeguard-4.patch
 BuildRequires:  %{python_module Cython}
 BuildRequires:  %{python_module setuptools >= 44}
 BuildRequires:  %{python_module setuptools_scm >= 3.4.3}

++++++ support-typeguard-4.patch ++++++
Index: stack_data-0.6.2/tests/__init__.py
===================================================================
--- stack_data-0.6.2.orig/tests/__init__.py
+++ stack_data-0.6.2/tests/__init__.py
@@ -1,7 +1,7 @@
 import os
 
 import pyximport
-from typeguard.importhook import install_import_hook
+from typeguard import install_import_hook
 
 pyximport.install(language_level=3)
 
Index: stack_data-0.6.2/stack_data/utils.py
===================================================================
--- stack_data-0.6.2.orig/stack_data/utils.py
+++ stack_data-0.6.2/stack_data/utils.py
@@ -8,6 +8,11 @@ from typing import (
     TypeVar, Mapping,
 )
 
+try:
+    from types import NoneType
+except ImportError:
+    NoneType = type(None)
+
 from asttokens import ASTText
 
 T = TypeVar('T')
@@ -91,7 +96,7 @@ def is_frame(frame_or_tb: Union[FrameTyp
     return isinstance(frame_or_tb, (types.FrameType,))
 
 
-def iter_stack(frame_or_tb: Union[FrameType, TracebackType]) -> 
Iterator[Union[FrameType, TracebackType]]:
+def iter_stack(frame_or_tb: Union[FrameType, TracebackType, NoneType]) -> 
Iterator[Union[FrameType, TracebackType]]:
     while frame_or_tb:
         yield frame_or_tb
         if is_frame(frame_or_tb):

Reply via email to