[Python-modules-commits] r30522 - in packages/python-django-debug-toolbar/trunk/debian (4 files)

asb at users.alioth.debian.org asb at users.alioth.debian.org
Sun Sep 7 19:47:02 UTC 2014


    Date: Sunday, September 7, 2014 @ 19:47:01
  Author: asb
Revision: 30522

Build Python 3 package (Closes: #755617).

Modified:
  packages/python-django-debug-toolbar/trunk/debian/TODO
  packages/python-django-debug-toolbar/trunk/debian/changelog
  packages/python-django-debug-toolbar/trunk/debian/control
  packages/python-django-debug-toolbar/trunk/debian/rules

Modified: packages/python-django-debug-toolbar/trunk/debian/TODO
===================================================================
--- packages/python-django-debug-toolbar/trunk/debian/TODO	2014-09-07 17:25:14 UTC (rev 30521)
+++ packages/python-django-debug-toolbar/trunk/debian/TODO	2014-09-07 19:47:01 UTC (rev 30522)
@@ -1,2 +1 @@
 * Build and install the documentation
-* Investigate Python 3 support

Modified: packages/python-django-debug-toolbar/trunk/debian/changelog
===================================================================
--- packages/python-django-debug-toolbar/trunk/debian/changelog	2014-09-07 17:25:14 UTC (rev 30521)
+++ packages/python-django-debug-toolbar/trunk/debian/changelog	2014-09-07 19:47:01 UTC (rev 30522)
@@ -5,6 +5,7 @@
   * Jquery is no longer bundled, so drop linking code in debian/rules.
   * Move libjs-jquery to Suggests. Upstream introduced a JQUERY_URL
     configuration option that can also take a local URI.
+  * Build Python 3 package (Closes: #755617).
 
  -- Andrew Starr-Bochicchio <asb at debian.org>  Sat, 07 Jun 2014 23:32:19 -0400
 

Modified: packages/python-django-debug-toolbar/trunk/debian/control
===================================================================
--- packages/python-django-debug-toolbar/trunk/debian/control	2014-09-07 17:25:14 UTC (rev 30521)
+++ packages/python-django-debug-toolbar/trunk/debian/control	2014-09-07 19:47:01 UTC (rev 30522)
@@ -5,12 +5,18 @@
 Uploaders: Andrew Starr-Bochicchio <asb at debian.org>
 Build-Depends: debhelper (>= 9),
                dh-python,
-               python,
+               python-all,
+               python3-all,
                python-django,
+               python3-django,
                python-setuptools,
-               python-sqlparse
+               python3-setuptools,
+               python-sqlparse,
+               python3-sqlparse
 Standards-Version: 3.9.5
 XS-Testsuite: autopkgtest
+X-Python-Version: >= 2.6
+X-Python3-Version: >= 3.2
 Homepage: https://github.com/django-debug-toolbar/django-debug-toolbar
 Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/python-django-debug-toolbar/trunk/
 Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/python-django-debug-toolbar/trunk/
@@ -37,3 +43,28 @@
    * HTTP headers
    * Total requests, time, hits and misses of the cache.
    * Which templates were rendered the context provided to each template.
+
+Package: python3-django-debug-toolbar
+Architecture: all
+Depends: python3-sqlparse,
+         ${misc:Depends},
+         ${python3:Depends}
+Recommends: python3-pygments
+Suggests: libjs-jquery
+Description: Embedded debugging toolbar for Django projects (Python 3 version)
+ The Django Debug Toolbar is a plug-in Django application that displays a set
+ of panels which conveys information about the current request at the top of the
+ rendered page. It can show:
+ .
+   * Total time taken to process request
+   * Request variables, including GET, POST, cookie, and session information.
+   * All SQL queries performed during response creation and processing,
+     including timing and 'EXPLAIN' output for each query in conjunction with
+     the total time spent performing SQL queries. If python-pygments is
+     installed, the SQL syntax is highlighted.
+   * Current Django version
+   * HTTP headers
+   * Total requests, time, hits and misses of the cache.
+   * Which templates were rendered the context provided to each template.
+ .
+ This package contains the Python 3 version.

Modified: packages/python-django-debug-toolbar/trunk/debian/rules
===================================================================
--- packages/python-django-debug-toolbar/trunk/debian/rules	2014-09-07 17:25:14 UTC (rev 30521)
+++ packages/python-django-debug-toolbar/trunk/debian/rules	2014-09-07 19:47:01 UTC (rev 30522)
@@ -1,9 +1,18 @@
 #!/usr/bin/make -f
 
+PYTHON2_VERSIONS=$(shell pyversions -vr)
+PYTHON3_VERSIONS=$(shell py3versions -vr)
+PYTHON_VERSIONS=${PYTHON2_VERSIONS} ${PYTHON3_VERSIONS}
+
+export PYBUILD_NAME=django-debug-toolbar
+export PYBUILD_TEST_PYTEST=1
+
 %:
-	dh $@ --with python2 --buildsystem=pybuild
+	dh $@ --with python2,python3 --buildsystem=pybuild
 
 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
-override_dh_auto_test:
-	PYTHONPATH=. DJANGO_SETTINGS_MODULE=tests.settings django-admin test tests
+test-python%:
+	PYTHONPATH=. DJANGO_SETTINGS_MODULE=tests.settings python$* /usr/bin/django-admin test tests
+
+override_dh_auto_test: $(foreach pyversion,${PYTHON_VERSIONS},$(pyversion:%=test-python%))
 endif




More information about the Python-modules-commits mailing list