File python-django-debug-toolbar.spec of Package failed_python-django-debug-toolbar
%{?sle15_python_module_pythons}
Name: python-django-debug-toolbar
Version: 3.6
Release: 0
Summary: A configurable set of panels that display various debug information
License: BSD-3-Clause
URL: https://github.com/jazzband/django-debug-to...
Source: https://github.com/jazzband/django-debug-toolbar/archive/%{version}.tar.gz#/django-debug-toolbar-%{version}.tar.gz
BuildRequires: python-Django >= 2.2
BuildRequires: python-django-jinja
BuildRequires: python-html5lib
BuildRequires: python-isort
BuildRequires: python-setuptools
BuildRequires: python-sqlparse >= 0.2.0
BuildRequires: fdupes
Requires: python-Django >= 2.2
Requires: python-django-jinja
Requires: python-sqlparse >= 0.2.0
BuildArch: noarch
%python_subpackages
%description
The Django Debug Toolbar is a configurable set of panels that display various
debug information about the current request/response and when clicked, display
more details about the panel's content.
Currently, the following panels have been written and are working:
- Django version
- Request timer
- A list of settings in settings.py
- Common HTTP headers
- GET/POST/cookie/session variable display
- Templates and context used, and their template paths
- SQL queries including time to execute and links to EXPLAIN each query
- List of signals, their args and receivers
- Logging output via Python's built-in logging, or via the logbook module
There is also one Django management command currently:
- debugsqlshell: Outputs the SQL that gets executed as you work in the Python
interactive shell.
%prep
%setup -q -n django-debug-toolbar-%{version}
%build
%python_build
%install
%python_install
%python_expand fdupes %{buildroot}%{python_sitelib}
%check
export LANG=en_US.UTF8
export DJANGO_SETTINGS_MODULE=tests.settings
export DB_BACKEND=sqlite3
export DB_NAME=":memory:"
%python_expand $python -m django test -v2 tests
%files %{python_files}
%license LICENSE
%doc README.rst docs/*.rst
%{python_sitelib}/*
%changelog