14
0
Files
python-pyramid-debugtoolbar/python-pyramid-debugtoolbar.spec

86 lines
2.9 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-pyramid-debugtoolbar
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2015 LISA GmbH, Bingen, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
# nothing provides python2-pyramid needed by python2-pyramid-mako
%define skip_python2 1
Name: python-pyramid-debugtoolbar
Version: 4.12.1
Release: 0
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
BuildRequires: %{python_module Pygments}
- Update to 4.10 - Drop support for Python 2.7, 3.4, 3.5, 3.6. - Add support for Python 3.9, 3.10, 3.11. - Fix deprecated usages of ``threading.currentThread()``. See https://github.com/Pylons/pyramid_debugtoolbar/pull/374 - 4.9 (2020-11-24) - Support Python 3.9. - Added a new Session Panel to track ingress and egress changes to a registered ISession interface across a request lifecycle. By default, the panel only operates on accessed sessions via a wrapped loader. Users can activate the Session Panel, via the Toolbar Settings or a per-request cookie, to track the ingress and egress data on all requests. * Removed "Session" section from Request Vars Panel * Updated Documentation and Screenshots - Ensured the Headers panel only operates when a Response object exists, to create better stack traces if other panels encounter errors. - ``utils.dictrepr`` will now fallback to a string comparison of the keys if a TypeError is encountered, which can occur under Python3. * A test was added to check to ensure sorting errors occur under Python3. If the test fails in the future, this workaround may no longer be needed. - Updated toolbar javascript to better handle multiple user-activated panels. * ``split`` and ``join`` functions now use the same delimiter. * If the browser supports it, use a "set" to de-duplicate active panels. - Inline comments on toolbar.js and toolbar.py to alert future developers on the string delimiters and cookie names. - 4.8 (2020-10-23) - Added tracking of transactional SQLAlchemy events to provide more insight into database session behavior during a request's lifecycle. See https://github.com/Pylons/pyramid_debugtoolbar/pull/368 - 4.7 (2020-10-22) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyramid-debugtoolbar?expand=0&rev=12
2023-02-21 12:09:23 +00:00
BuildRequires: %{python_module WebOb}
BuildRequires: %{python_module WebTest}
BuildRequires: %{python_module devel}
- Update to 4.10 - Drop support for Python 2.7, 3.4, 3.5, 3.6. - Add support for Python 3.9, 3.10, 3.11. - Fix deprecated usages of ``threading.currentThread()``. See https://github.com/Pylons/pyramid_debugtoolbar/pull/374 - 4.9 (2020-11-24) - Support Python 3.9. - Added a new Session Panel to track ingress and egress changes to a registered ISession interface across a request lifecycle. By default, the panel only operates on accessed sessions via a wrapped loader. Users can activate the Session Panel, via the Toolbar Settings or a per-request cookie, to track the ingress and egress data on all requests. * Removed "Session" section from Request Vars Panel * Updated Documentation and Screenshots - Ensured the Headers panel only operates when a Response object exists, to create better stack traces if other panels encounter errors. - ``utils.dictrepr`` will now fallback to a string comparison of the keys if a TypeError is encountered, which can occur under Python3. * A test was added to check to ensure sorting errors occur under Python3. If the test fails in the future, this workaround may no longer be needed. - Updated toolbar javascript to better handle multiple user-activated panels. * ``split`` and ``join`` functions now use the same delimiter. * If the browser supports it, use a "set" to de-duplicate active panels. - Inline comments on toolbar.js and toolbar.py to alert future developers on the string delimiters and cookie names. - 4.8 (2020-10-23) - Added tracking of transactional SQLAlchemy events to provide more insight into database session behavior during a request's lifecycle. See https://github.com/Pylons/pyramid_debugtoolbar/pull/368 - 4.7 (2020-10-22) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyramid-debugtoolbar?expand=0&rev=12
2023-02-21 12:09:23 +00:00
BuildRequires: %{python_module pyramid >= 1.4}
BuildRequires: %{python_module pyramid-mako >= 0.3.1}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
- Update to 4.10 - Drop support for Python 2.7, 3.4, 3.5, 3.6. - Add support for Python 3.9, 3.10, 3.11. - Fix deprecated usages of ``threading.currentThread()``. See https://github.com/Pylons/pyramid_debugtoolbar/pull/374 - 4.9 (2020-11-24) - Support Python 3.9. - Added a new Session Panel to track ingress and egress changes to a registered ISession interface across a request lifecycle. By default, the panel only operates on accessed sessions via a wrapped loader. Users can activate the Session Panel, via the Toolbar Settings or a per-request cookie, to track the ingress and egress data on all requests. * Removed "Session" section from Request Vars Panel * Updated Documentation and Screenshots - Ensured the Headers panel only operates when a Response object exists, to create better stack traces if other panels encounter errors. - ``utils.dictrepr`` will now fallback to a string comparison of the keys if a TypeError is encountered, which can occur under Python3. * A test was added to check to ensure sorting errors occur under Python3. If the test fails in the future, this workaround may no longer be needed. - Updated toolbar javascript to better handle multiple user-activated panels. * ``split`` and ``join`` functions now use the same delimiter. * If the browser supports it, use a "set" to de-duplicate active panels. - Inline comments on toolbar.js and toolbar.py to alert future developers on the string delimiters and cookie names. - 4.8 (2020-10-23) - Added tracking of transactional SQLAlchemy events to provide more insight into database session behavior during a request's lifecycle. See https://github.com/Pylons/pyramid_debugtoolbar/pull/368 - 4.7 (2020-10-22) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyramid-debugtoolbar?expand=0&rev=12
2023-02-21 12:09:23 +00:00
BuildRequires: %{python_module sqlalchemy}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Pygments
- Update to 4.10 - Drop support for Python 2.7, 3.4, 3.5, 3.6. - Add support for Python 3.9, 3.10, 3.11. - Fix deprecated usages of ``threading.currentThread()``. See https://github.com/Pylons/pyramid_debugtoolbar/pull/374 - 4.9 (2020-11-24) - Support Python 3.9. - Added a new Session Panel to track ingress and egress changes to a registered ISession interface across a request lifecycle. By default, the panel only operates on accessed sessions via a wrapped loader. Users can activate the Session Panel, via the Toolbar Settings or a per-request cookie, to track the ingress and egress data on all requests. * Removed "Session" section from Request Vars Panel * Updated Documentation and Screenshots - Ensured the Headers panel only operates when a Response object exists, to create better stack traces if other panels encounter errors. - ``utils.dictrepr`` will now fallback to a string comparison of the keys if a TypeError is encountered, which can occur under Python3. * A test was added to check to ensure sorting errors occur under Python3. If the test fails in the future, this workaround may no longer be needed. - Updated toolbar javascript to better handle multiple user-activated panels. * ``split`` and ``join`` functions now use the same delimiter. * If the browser supports it, use a "set" to de-duplicate active panels. - Inline comments on toolbar.js and toolbar.py to alert future developers on the string delimiters and cookie names. - 4.8 (2020-10-23) - Added tracking of transactional SQLAlchemy events to provide more insight into database session behavior during a request's lifecycle. See https://github.com/Pylons/pyramid_debugtoolbar/pull/368 - 4.7 (2020-10-22) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyramid-debugtoolbar?expand=0&rev=12
2023-02-21 12:09:23 +00:00
Requires: python-pyramid >= 1.4
Requires: python-pyramid-mako >= 0.3.1
BuildArch: noarch
%python_subpackages
%description
A package which provides an interactive HTML debugger for Pyramid application
development.
Note that pyramid-debugtoolbar is a blatant rip-off of Michael van Tellingen's
flask-debugtoolbar (which itself was derived from Rob Hudson's
django-debugtoolbar). It also includes a lightly sanded down version of the
Werkzeug debugger code by Armin Ronacher and team.
%package -n %{name}-doc
Summary: Documentation files for %{name}
%description -n %{name}-doc
Documentation and examples for %{name}.
%prep
%setup -q -n pyramid_debugtoolbar-%{version}
rm -r demo/.gitignore demo/debugtoolbar_demo.egg-info
%build
%python_build
%install
%python_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 {} \;
%check
%pytest
%files %{python_files}
%license LICENSE.txt
%{python_sitelib}/pyramid_debugtoolbar/
%{python_sitelib}/pyramid_debugtoolbar-%{version}-py%{python_version}.egg-info
%files -n %{name}-doc
%doc CHANGES.txt CONTRIBUTORS.txt README.rst TODO.txt docs/*.rst docs/*.png demo
%changelog