File python-pyramid_debugtoolbar.spec of Package python-pyramid_debugtoolbar
#
# spec file for package python-pyramid_debugtoolbar
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# 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 http://bugs.opensuse.org/
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-pyramid_debugtoolbar
Version: 4.3
Release: 0
Summary: An interactive HTML debugger for Pyramid application development
License: BSD-4-Clause AND ZPL-2.1 AND MIT
Group: Development/Languages/Python
Url: http://docs.pylonsproject.org
Source: https://files.pythonhosted.org/packages/source/p/pyramid_debugtoolbar/pyramid_debugtoolbar-%{version}.tar.gz
Source1: fetch-intersphinx-files.sh
Source2: pyramid.inv
BuildRequires: %{python_module Pygments}
BuildRequires: %{python_module WebTest}
BuildRequires: %{python_module devel}
# Testing requirements:
BuildRequires: %{python_module nose}
BuildRequires: %{python_module hupper}
BuildRequires: %{python_module plaster-pastedeploy}
BuildRequires: %{python_module plaster}
BuildRequires: python-ipaddress
BuildRequires: %{python_module pyramid_mako} >= 0.3.1
BuildRequires: %{python_module pyramid} >= 1.2
BuildRequires: %{python_module repoze.lru}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Pygments
Requires: python-pyramid >= 1.2
Requires: python-pyramid_mako >= 0.3.1
Requires: python-repoze.lru
BuildArch: noarch
%python_subpackages
%description
A package which provides an interactive HTML debugger for Pyramid application
development.
pyramid_debugtoolbar provides a debug toolbar useful while you're developing
your Pyramid application.
This code requires Pyramid 1.2a1 or better.
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.
%prep
%setup -q -n pyramid_debugtoolbar-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
#Fix spurious executable bit on js/css files
%python_expand find %{buildroot}%{$python_sitelib} -type f -exec chmod 0644 {} \;
%check
%python_exec setup.py nosetests
%files %python_files
%defattr(-,root,root,-)
%if 0%{?leap_version} >= 420200 || 0%{?suse_version} > 1320
%license LICENSE.txt
%else
%doc LICENSE.txt
%endif
%doc CHANGES.txt CONTRIBUTORS.txt README.rst TODO.txt
%{python_sitelib}/pyramid_debugtoolbar/
%{python_sitelib}/pyramid_debugtoolbar-%{version}-py%{python_version}.egg-info
%changelog