[Python-modules-commits] r22892 - in packages/python-markdown/trunk/debian (6 files)

mitya57-guest at users.alioth.debian.org mitya57-guest at users.alioth.debian.org
Mon Nov 5 10:23:29 UTC 2012


    Date: Monday, November 5, 2012 @ 10:23:27
  Author: mitya57-guest
Revision: 22892

Add DEP-8 tests

Added:
  packages/python-markdown/trunk/debian/tests/
  packages/python-markdown/trunk/debian/tests/control
  packages/python-markdown/trunk/debian/tests/python-markdown
  packages/python-markdown/trunk/debian/tests/python3-markdown
Modified:
  packages/python-markdown/trunk/debian/changelog
  packages/python-markdown/trunk/debian/control

Modified: packages/python-markdown/trunk/debian/changelog
===================================================================
--- packages/python-markdown/trunk/debian/changelog	2012-11-05 09:28:41 UTC (rev 22891)
+++ packages/python-markdown/trunk/debian/changelog	2012-11-05 10:23:27 UTC (rev 22892)
@@ -5,6 +5,7 @@
   * Add python-utidylib to python-markdown Suggests (for html_tidy extension)
     and to Build-Depends (for testsuite)
   * git_fix_tests.patch: dropped, no longer needed
+  * Add DEP-8 tests
 
  -- Dmitry Shachnev <mitya57 at gmail.com>  Mon, 05 Nov 2012 13:28:13 +0400
 

Modified: packages/python-markdown/trunk/debian/control
===================================================================
--- packages/python-markdown/trunk/debian/control	2012-11-05 09:28:41 UTC (rev 22891)
+++ packages/python-markdown/trunk/debian/control	2012-11-05 10:23:27 UTC (rev 22892)
@@ -12,6 +12,7 @@
 Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/python-markdown/trunk/
 X-Python-Version: >= 2.6
 X-Python3-Version: >= 3.1
+XS-Testsuite: autopkgtest
 DM-Upload-Allowed: yes
 
 Package: python-markdown

Added: packages/python-markdown/trunk/debian/tests/control
===================================================================
--- packages/python-markdown/trunk/debian/tests/control	                        (rev 0)
+++ packages/python-markdown/trunk/debian/tests/control	2012-11-05 10:23:27 UTC (rev 22892)
@@ -0,0 +1,5 @@
+Tests: python-markdown
+Depends: python-markdown, python-nose
+
+Tests: python3-markdown
+Depends: python-markdown, python3-nose

Added: packages/python-markdown/trunk/debian/tests/python-markdown
===================================================================
--- packages/python-markdown/trunk/debian/tests/python-markdown	                        (rev 0)
+++ packages/python-markdown/trunk/debian/tests/python-markdown	2012-11-05 10:23:27 UTC (rev 22892)
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -eux
+cp -r tests run-tests.py "$ADTTMP/"
+cd "$ADTTMP"
+for python in $(pyversions -i); do
+	PYTHONWARNINGS=d $python run-tests.py;
+done

Added: packages/python-markdown/trunk/debian/tests/python3-markdown
===================================================================
--- packages/python-markdown/trunk/debian/tests/python3-markdown	                        (rev 0)
+++ packages/python-markdown/trunk/debian/tests/python3-markdown	2012-11-05 10:23:27 UTC (rev 22892)
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -eux
+cp -r tests "$ADTTMP/"
+2to3 -w --no-diffs "$ADTTMP/tests/" 2>&1
+cd "$ADTTMP"
+
+for pyversion in $(py3versions -vi); do
+	PYTHONWARNINGS=d nosetests-$pyversion -w tests;
+done




More information about the Python-modules-commits mailing list