forked from pool/python-pyramid-debugtoolbar
Compare commits
4 Commits
Author | SHA256 | Date | |
---|---|---|---|
1d1c9b5205 | |||
12233c3703 | |||
5891252bbd | |||
cb1abf5496 |
54
0001-Adapt-tests-to-latest-pygments.patch
Normal file
54
0001-Adapt-tests-to-latest-pygments.patch
Normal file
@@ -0,0 +1,54 @@
|
||||
From 54e7ea7dc7a0986213975419a6ea6566e2102835 Mon Sep 17 00:00:00 2001
|
||||
From: Daniel Garcia Moreno <daniel.garcia@suse.com>
|
||||
Date: Tue, 25 Feb 2025 14:35:23 +0100
|
||||
Subject: [PATCH] Adapt tests to latest pygments
|
||||
|
||||
---
|
||||
tests/test_panels/test_sqla.py | 14 +++++++-------
|
||||
1 file changed, 7 insertions(+), 7 deletions(-)
|
||||
|
||||
Index: pyramid_debugtoolbar-4.12.1/tests/test_panels/test_sqla.py
|
||||
===================================================================
|
||||
--- pyramid_debugtoolbar-4.12.1.orig/tests/test_panels/test_sqla.py
|
||||
+++ pyramid_debugtoolbar-4.12.1/tests/test_panels/test_sqla.py
|
||||
@@ -77,9 +77,9 @@ class _TestSQLAlchemyPanel(_TestDebugtoo
|
||||
|
||||
"""
|
||||
self.assertIn(
|
||||
- '<span style="color: #008800; font-weight: bold">SELECT</span>'
|
||||
- '<span style="color: #bbbbbb"> </span>'
|
||||
- '<span style="color: #008800; font-weight: bold">NULL</span>;',
|
||||
+ '<span style="color: #080; font-weight: bold">SELECT</span>'
|
||||
+ '<span style="color: #BBB"> </span>'
|
||||
+ '<span style="color: #080; font-weight: bold">NULL</span>;',
|
||||
resp.text,
|
||||
)
|
||||
|
||||
@@ -88,11 +88,11 @@ class _TestSQLAlchemyPanel(_TestDebugtoo
|
||||
These are rendered as comments
|
||||
"""
|
||||
self.assertIn(
|
||||
- '<span style="color: #888888">-- [event] begin</span>',
|
||||
+ '<span style="color: #888">-- [event] begin</span>',
|
||||
resp.text,
|
||||
)
|
||||
self.assertIn(
|
||||
- '<span style="color: #888888">-- [event] rollback</span>',
|
||||
+ '<span style="color: #888">-- [event] rollback</span>',
|
||||
resp.text,
|
||||
)
|
||||
|
||||
@@ -101,11 +101,11 @@ class _TestSQLAlchemyPanel(_TestDebugtoo
|
||||
These are rendered as comments
|
||||
"""
|
||||
self.assertIn(
|
||||
- '<span style="color: #888888">-- [event] begin</span>',
|
||||
+ '<span style="color: #888">-- [event] begin</span>',
|
||||
resp.text,
|
||||
)
|
||||
self.assertIn(
|
||||
- '<span style="color: #888888">-- [event] commit</span',
|
||||
+ '<span style="color: #888">-- [event] commit</span',
|
||||
resp.text,
|
||||
)
|
||||
|
@@ -1,3 +1,14 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 11 05:49:31 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Switch to pyproject macros.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 25 13:38:57 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
|
||||
- Add patch to fix tests with latest pyramid
|
||||
0001-Adapt-tests-to-latest-pygments.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 9 21:57:03 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pyramid-debugtoolbar
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
# Copyright (c) 2015 LISA GmbH, Bingen, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
@@ -26,15 +26,19 @@ Summary: An interactive HTML debugger for Pyramid application development
|
||||
License: BSD-4-Clause AND ZPL-2.1 AND MIT
|
||||
URL: https://docs.pylonsproject.org
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pyramid_debugtoolbar/pyramid_debugtoolbar-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM 0001-Adapt-tests-to-latest-pygments.patch gh#Pylons/pyramid_debugtoolbar#393
|
||||
Patch1: 0001-Adapt-tests-to-latest-pygments.patch
|
||||
BuildRequires: %{python_module Pygments}
|
||||
BuildRequires: %{python_module WebOb}
|
||||
BuildRequires: %{python_module WebTest}
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pyramid >= 1.4}
|
||||
BuildRequires: %{python_module pyramid-mako >= 0.3.1}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module sqlalchemy}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-Pygments
|
||||
@@ -59,14 +63,14 @@ Summary: Documentation files for %{name}
|
||||
Documentation and examples for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n pyramid_debugtoolbar-%{version}
|
||||
%autosetup -p1 -n pyramid_debugtoolbar-%{version}
|
||||
rm -r demo/.gitignore demo/debugtoolbar_demo.egg-info
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
#Fix spurious executable bit on js/css files
|
||||
%python_expand find %{buildroot}%{$python_sitelib} -type f -exec chmod 0644 {} \;
|
||||
@@ -77,7 +81,7 @@ rm -r demo/.gitignore demo/debugtoolbar_demo.egg-info
|
||||
%files %{python_files}
|
||||
%license LICENSE.txt
|
||||
%{python_sitelib}/pyramid_debugtoolbar/
|
||||
%{python_sitelib}/pyramid_debugtoolbar-%{version}-py%{python_version}.egg-info
|
||||
%{python_sitelib}/pyramid_debugtoolbar-%{version}.dist-info
|
||||
|
||||
%files -n %{name}-doc
|
||||
%doc CHANGES.txt CONTRIBUTORS.txt README.rst TODO.txt docs/*.rst docs/*.png demo
|
||||
|
Reference in New Issue
Block a user