[python-django-debug-toolbar] update to 1.3.0
Matthias Runge
mrunge at fedoraproject.org
Fri Mar 13 09:55:45 UTC 2015
commit cf36725a6b16eec94f6c23f46c96827272ca0671
Author: Matthias Runge <mrunge at redhat.com>
Date: Fri Mar 13 10:54:55 2015 +0100
update to 1.3.0
- add python3 support
.gitignore | 1 +
python-django-debug-toolbar.spec | 79 +++++++++++++++++++++++++++++++++-------
sources | 2 +-
3 files changed, 68 insertions(+), 14 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 53ed099..fdec206 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@
/django-debug-toolbar-0.9.4.tar.gz
/django-debug-toolbar-1.0.tar.gz
/django-debug-toolbar-1.0.1.tar.gz
+/django-debug-toolbar-1.3.0.tar.gz
diff --git a/python-django-debug-toolbar.spec b/python-django-debug-toolbar.spec
index e525489..3c8d41d 100644
--- a/python-django-debug-toolbar.spec
+++ b/python-django-debug-toolbar.spec
@@ -1,6 +1,10 @@
+%if 0%{?fedora}
+%global with_python3 1
+%endif
+
Name: python-django-debug-toolbar
-Version: 1.0.1
-Release: 2%{?dist}
+Version: 1.3.0
+Release: 1%{?dist}
Summary: Configurable set of panels that display various debug information
License: BSD
@@ -15,7 +19,7 @@ BuildRequires: python-django
Requires: python-django
%description
-The Django Debug Toolbar is a configurable set of panels that display various
+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.
@@ -31,7 +35,31 @@ Currently, the following panels have been written and are working:
- List of signals, their args and receivers
- Logging output via Python's built-in logging, or via the logbook module
+%if 0%{?with_python3}
+%package -n python3-django-debug-toolbar
+Requires: python3-django
+BuildRequires: python3-django
+
+Summary: Configurable set of panels that display various debug information
+
+%description -n python3-django-debug-toolbar
+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
+
+%endif
%prep
%setup -q -n django-debug-toolbar-%{version}
@@ -42,27 +70,52 @@ rm -rf django_debug_toolbar.egg-info
# "Fix" zero length file error
echo "# empty file" > debug_toolbar/models.py
+%if 0%{?with_python3}
+rm -rf %{py3dir}
+cp -a . %{py3dir}
+%endif # with_python3
%build
-%{__python} setup.py build
+%{__python2} setup.py build
-# checks don't seem to work right now
-# %%check
-# %%{__python} setup.py test
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py build
+popd
+%endif # with_python3
%install
-%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py install --skip-build --root %{buildroot}
+popd
+%endif # with_python3
+
+%{__python2} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
%check
-%{__python} setup.py test
+%{__python2} setup.py test
-
-%files
-%doc LICENSE README.rst PKG-INFO
-%{python_sitelib}/*
+%files
+%doc README.rst PKG-INFO
+%license LICENSE
+%{python2_sitelib}/debug_toolbar
+%{python2_sitelib}/django_debug_toolbar-%{version}-py%{python_version}.egg-info
+
+%if %{with_python3}
+%files -n python3-django-debug-toolbar
+%doc README.rst PKG-INFO
+%license LICENSE
+%{python3_sitelib}/debug_toolbar
+%{python3_sitelib}/django_debug_toolbar-%{version}-py%{python3_version}.egg-info
+%endif
%changelog
+* Fri Mar 13 2015 Matthias Runge <mrunge at redhat.com> - 1.3.0-1
+- update to 1.3.0
+- modernize spec, add python3 support
+
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
diff --git a/sources b/sources
index 7e2cdad..ec9f885 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-ef346e11ad80d25469110ee9dbdf92c2 django-debug-toolbar-1.0.1.tar.gz
+a43c3232545e596fc5947b6454109874 django-debug-toolbar-1.3.0.tar.gz
More information about the scm-commits
mailing list