From a75ff44a9d1e369fc68400d2297c49c341d45508095d18c2dfb0d773ecd1f34e Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 27 Nov 2023 16:14:05 +0000 Subject: [PATCH] - 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/package/show/devel:languages:python/python-stack-data?expand=0&rev=19 --- python-stack-data.changes | 10 +++++++++- python-stack-data.spec | 4 +--- stack_data-0.6.2.tar.gz | 3 --- stack_data-0.6.3.tar.gz | 3 +++ support-typeguard-4.patch | 38 -------------------------------------- 5 files changed, 13 insertions(+), 45 deletions(-) delete mode 100644 stack_data-0.6.2.tar.gz create mode 100644 stack_data-0.6.3.tar.gz delete mode 100644 support-typeguard-4.patch diff --git a/python-stack-data.changes b/python-stack-data.changes index eeaaeea..92246de 100644 --- a/python-stack-data.changes +++ b/python-stack-data.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon Nov 27 16:11:39 UTC 2023 - Dirk Müller + +- 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 @@ -11,7 +19,7 @@ Mon Aug 14 12:52:59 UTC 2023 - Dirk Müller ------------------------------------------------------------------- Sun Aug 13 19:27:59 UTC 2023 - Dirk Müller -- restrict to older Cython +- restrict to older Cython ------------------------------------------------------------------- Mon May 15 09:53:06 UTC 2023 - Steve Kowalik diff --git a/python-stack-data.spec b/python-stack-data.spec index 6672acb..0712279 100644 --- a/python-stack-data.spec +++ b/python-stack-data.spec @@ -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} diff --git a/stack_data-0.6.2.tar.gz b/stack_data-0.6.2.tar.gz deleted file mode 100644 index a8e4a40..0000000 --- a/stack_data-0.6.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:32d2dd0376772d01b6cb9fc996f3c8b57a357089dec328ed4b6553d037eaf815 -size 44146 diff --git a/stack_data-0.6.3.tar.gz b/stack_data-0.6.3.tar.gz new file mode 100644 index 0000000..831de21 --- /dev/null +++ b/stack_data-0.6.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:836a778de4fec4dcd1dcd89ed8abff8a221f58308462e1c4aa2a3cf30148f0b9 +size 44707 diff --git a/support-typeguard-4.patch b/support-typeguard-4.patch deleted file mode 100644 index 39cb264..0000000 --- a/support-typeguard-4.patch +++ /dev/null @@ -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):