Accepting request 1129197 from devel:languages:python

- update to 0.6.3:
  * Python 3.12 support
  * handle weird six import error
- drop support-typeguard-4.patch (upstream)

- restrict to older Cython

OBS-URL: https://build.opensuse.org/request/show/1129197
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-stack-data?expand=0&rev=9
This commit is contained in:
Ana Guerrero 2023-11-28 21:18:43 +00:00 committed by Git OBS Bridge
commit 2c41de6357
5 changed files with 13 additions and 45 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Mon Nov 27 16:11:39 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 0.6.3:
* Python 3.12 support
* handle weird six import error
- drop support-typeguard-4.patch (upstream)
-------------------------------------------------------------------
Wed Aug 23 07:28:06 UTC 2023 - ecsos <ecsos@opensuse.org>
@ -11,7 +19,7 @@ Mon Aug 14 12:52:59 UTC 2023 - Dirk Müller <dmueller@suse.com>
-------------------------------------------------------------------
Sun Aug 13 19:27:59 UTC 2023 - Dirk Müller <dmueller@suse.com>
- restrict to older Cython
- restrict to older Cython
-------------------------------------------------------------------
Mon May 15 09:53:06 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>

View File

@ -18,14 +18,12 @@
%{?sle15_python_module_pythons}
Name: python-stack-data
Version: 0.6.2
Version: 0.6.3
Release: 0
Summary: Extract data from python stack frames and tracebacks
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}

BIN
stack_data-0.6.2.tar.gz (Stored with Git LFS)

Binary file not shown.

3
stack_data-0.6.3.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:836a778de4fec4dcd1dcd89ed8abff8a221f58308462e1c4aa2a3cf30148f0b9
size 44707

View File

@ -1,38 +0,0 @@
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):