Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 70666e9210 | |||
| 380353c78e | |||
| 286e91dd1a | |||
| 3b6d30557a |
24
pygments.patch
Normal file
24
pygments.patch
Normal file
@@ -0,0 +1,24 @@
|
||||
Index: stack_data-0.6.3/tests/test_core.py
|
||||
===================================================================
|
||||
--- stack_data-0.6.3.orig/tests/test_core.py
|
||||
+++ stack_data-0.6.3/tests/test_core.py
|
||||
@@ -573,8 +573,8 @@ def test_absolute_filename():
|
||||
[
|
||||
r".c { color: #(999999|ababab); font-style: italic }",
|
||||
r".err { color: #a61717; background-color: #e3d2d2 }",
|
||||
- r".c-ExecutingNode { color: #(999999|ababab); font-style: italic; background-color: #ffff00 }",
|
||||
- r".err-ExecutingNode { color: #a61717; background-color: #ffff00 }",
|
||||
+ r".c-ExecutingNode { color: #(999999|ababab); font-style: italic; background-color: #(ffff00|FF0) }",
|
||||
+ r".err-ExecutingNode { color: #A61717; background-color: #(ffff00|FF0) }",
|
||||
]
|
||||
)
|
||||
def test_executing_style_defs(expected):
|
||||
@@ -582,7 +582,7 @@ def test_executing_style_defs(expected):
|
||||
formatter = HtmlFormatter(style=style)
|
||||
style_defs = formatter.get_style_defs()
|
||||
|
||||
- assert re.search(expected, style_defs)
|
||||
+ assert re.search(expected, style_defs, re.IGNORECASE)
|
||||
|
||||
|
||||
def test_example():
|
||||
@@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 16 06:12:25 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Switch to pyroject macros.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 20 13:14:44 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Add pygments.patch to fix non-skipped tests with Pygments 2.19
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 27 16:11:39 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-stack-data
|
||||
#
|
||||
# Copyright (c) 2023 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
|
||||
@@ -25,10 +25,14 @@ License: MIT
|
||||
URL: https://github.com/alexmojaki/stack_data
|
||||
Source: https://files.pythonhosted.org/packages/source/s/stack_data/stack_data-%{version}.tar.gz
|
||||
BuildRequires: %{python_module Cython}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools >= 44}
|
||||
BuildRequires: %{python_module setuptools_scm >= 3.4.3}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
# PATCH-FIX-UPSTREAM https://github.com/alexmojaki/stack_data/pull/58 Modify test_executing_style_defs to work with Pygments 2.19
|
||||
Patch0: pygments.patch
|
||||
Requires: python-asttokens
|
||||
Requires: python-executing
|
||||
Requires: python-pure-eval
|
||||
@@ -55,18 +59,18 @@ Extract data from python stack frames and tracebacks for informative displays
|
||||
%autosetup -p1 -n stack_data-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
# incompatibility with Pygments
|
||||
%pytest -k 'not (test_pygments_example or test_example)'
|
||||
# incompatibility with even older Pygments
|
||||
%pytest -k 'not ((test_core and test_pygments_example) or (test_serializer and test_example))'
|
||||
|
||||
%files %{python_files}
|
||||
%{python_sitelib}/stack_data
|
||||
%{python_sitelib}/stack_data-%{version}*-info
|
||||
%{python_sitelib}/stack_data-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user