[Python-modules-commits] r21431 - in packages/python-docutils/trunk/debian (7 files)
jwilk at users.alioth.debian.org
jwilk at users.alioth.debian.org
Wed Apr 25 16:39:58 UTC 2012
Date: Wednesday, April 25, 2012 @ 16:39:56
Author: jwilk
Revision: 21431
Add DEP-8 tests.
Added:
packages/python-docutils/trunk/debian/patches/dep8.diff
packages/python-docutils/trunk/debian/tests/
packages/python-docutils/trunk/debian/tests/control
packages/python-docutils/trunk/debian/tests/python2
packages/python-docutils/trunk/debian/tests/python3
Modified:
packages/python-docutils/trunk/debian/changelog
packages/python-docutils/trunk/debian/patches/series
Modified: packages/python-docutils/trunk/debian/changelog
===================================================================
--- packages/python-docutils/trunk/debian/changelog 2012-04-25 16:29:31 UTC (rev 21430)
+++ packages/python-docutils/trunk/debian/changelog 2012-04-25 16:39:56 UTC (rev 21431)
@@ -1,8 +1,9 @@
python-docutils (0.8.1-7) UNRELEASED; urgency=low
* Update move-data-to-usr-share.diff to cover the test/ directory, too.
+ * Add DEP-8 tests.
- -- Jakub Wilk <jwilk at debian.org> Wed, 25 Apr 2012 18:28:27 +0200
+ -- Jakub Wilk <jwilk at debian.org> Wed, 25 Apr 2012 18:39:19 +0200
python-docutils (0.8.1-6) unstable; urgency=low
Added: packages/python-docutils/trunk/debian/patches/dep8.diff
===================================================================
--- packages/python-docutils/trunk/debian/patches/dep8.diff (rev 0)
+++ packages/python-docutils/trunk/debian/patches/dep8.diff 2012-04-25 16:39:56 UTC (rev 21431)
@@ -0,0 +1,183 @@
+Description: update paths for DEP-8 tests
+ Update paths in various test files for the purpose of automated automatic
+ as-installed testing for Debian packages (see DEP-8).
+ .
+ This patch must not be applied when building the package!
+Author: Jakub Wilk <jwilk at debian.org>
+Forwarded: not-needed
+Last-Update: 2012-04-25
+
+--- a/test/functional/expected/compact_lists.html
++++ b/test/functional/expected/compact_lists.html
+@@ -5,7 +5,7 @@
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <meta name="generator" content="Docutils 0.8.1: http://docutils.sourceforge.net/" />
+ <title></title>
+-<link rel="stylesheet" href="../../../docutils/writers/html4css1/html4css1.css" type="text/css" />
++<link rel="stylesheet" href="/usr/share/docutils/writers/html4css1/html4css1.css" type="text/css" />
+ </head>
+ <body>
+ <div class="document">
+--- a/test/functional/expected/dangerous.html
++++ b/test/functional/expected/dangerous.html
+@@ -5,7 +5,7 @@
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <meta name="generator" content="Docutils 0.8.1: http://docutils.sourceforge.net/" />
+ <title></title>
+-<link rel="stylesheet" href="../../../docutils/writers/html4css1/html4css1.css" type="text/css" />
++<link rel="stylesheet" href="/usr/share/docutils/writers/html4css1/html4css1.css" type="text/css" />
+ </head>
+ <body>
+ <div class="document">
+--- a/test/functional/expected/field_name_limit.html
++++ b/test/functional/expected/field_name_limit.html
+@@ -5,7 +5,7 @@
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <meta name="generator" content="Docutils 0.8.1: http://docutils.sourceforge.net/" />
+ <title></title>
+-<link rel="stylesheet" href="../../../docutils/writers/html4css1/html4css1.css" type="text/css" />
++<link rel="stylesheet" href="/usr/share/docutils/writers/html4css1/html4css1.css" type="text/css" />
+ </head>
+ <body>
+ <div class="document">
+--- a/test/functional/expected/math_output_html.html
++++ b/test/functional/expected/math_output_html.html
+@@ -5,8 +5,8 @@
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <meta name="generator" content="Docutils 0.8.1: http://docutils.sourceforge.net/" />
+ <title>Mathematics</title>
+-<link rel="stylesheet" href="../../../docutils/writers/html4css1/html4css1.css" type="text/css" />
+-<link rel="stylesheet" href="../../../docutils/writers/html4css1/math.css" type="text/css" />
++<link rel="stylesheet" href="/usr/share/docutils/writers/html4css1/html4css1.css" type="text/css" />
++<link rel="stylesheet" href="/usr/share/docutils/writers/html4css1/math.css" type="text/css" />
+ </head>
+ <body>
+ <div class="document" id="mathematics">
+--- a/test/functional/expected/math_output_latex.html
++++ b/test/functional/expected/math_output_latex.html
+@@ -5,7 +5,7 @@
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <meta name="generator" content="Docutils 0.8.1: http://docutils.sourceforge.net/" />
+ <title>Mathematics</title>
+-<link rel="stylesheet" href="../../../docutils/writers/html4css1/html4css1.css" type="text/css" />
++<link rel="stylesheet" href="/usr/share/docutils/writers/html4css1/html4css1.css" type="text/css" />
+ </head>
+ <body>
+ <div class="document" id="mathematics">
+--- a/test/functional/expected/math_output_mathjax.html
++++ b/test/functional/expected/math_output_mathjax.html
+@@ -6,7 +6,7 @@
+ <meta name="generator" content="Docutils 0.8.1: http://docutils.sourceforge.net/" />
+ <title>Mathematics</title>
+ <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
+-<link rel="stylesheet" href="../../../docutils/writers/html4css1/html4css1.css" type="text/css" />
++<link rel="stylesheet" href="/usr/share/docutils/writers/html4css1/html4css1.css" type="text/css" />
+ </head>
+ <body>
+ <div class="document" id="mathematics">
+--- a/test/functional/expected/math_output_mathml.xhtml
++++ b/test/functional/expected/math_output_mathml.xhtml
+@@ -5,7 +5,7 @@
+ <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
+ <meta name="generator" content="Docutils 0.8.1: http://docutils.sourceforge.net/" />
+ <title>Mathematics</title>
+-<link rel="stylesheet" href="../../../docutils/writers/html4css1/html4css1.css" type="text/css" />
++<link rel="stylesheet" href="/usr/share/docutils/writers/html4css1/html4css1.css" type="text/css" />
+ </head>
+ <body>
+ <div class="document" id="mathematics">
+--- a/test/functional/expected/pep_html.html
++++ b/test/functional/expected/pep_html.html
+@@ -10,7 +10,7 @@
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <meta name="generator" content="Docutils 0.8.1: http://docutils.sourceforge.net/" />
+ <title>PEP 100 -- Test PEP</title>
+- <link rel="stylesheet" href="../../../docutils/writers/pep_html/pep.css" type="text/css" />
++ <link rel="stylesheet" href="/usr/share/docutils/writers/pep_html/pep.css" type="text/css" />
+ </head>
+ <body bgcolor="white">
+ <table class="navigation" cellpadding="0" cellspacing="0"
+--- a/test/functional/expected/standalone_rst_html4css1.html
++++ b/test/functional/expected/standalone_rst_html4css1.html
+@@ -12,7 +12,7 @@
+ <meta name="copyright" content="This document has been placed in the public domain. You may do with it as you wish. You may copy, modify, redistribute, reattribute, sell, buy, rent, lease, destroy, or improve it, quote it at length, excerpt, incorporate, collate, fold, staple, or mutilate it, or do anything else to it that your or anyone else's heart desires." />
+ <meta content="reStructuredText, test, parser" name="keywords" />
+ <meta content="A test document, containing at least one example of each reStructuredText construct." lang="en" name="description" />
+-<link rel="stylesheet" href="../../../docutils/writers/html4css1/html4css1.css" type="text/css" />
++<link rel="stylesheet" href="/usr/share/docutils/writers/html4css1/html4css1.css" type="text/css" />
+ </head>
+ <body>
+ <div class="header">
+--- a/test/functional/expected/standalone_rst_s5_html_1.html
++++ b/test/functional/expected/standalone_rst_s5_html_1.html
+@@ -8,7 +8,7 @@
+ <title>Slide Shows</title>
+ <meta name="author" content="David Goodger" />
+ <meta name="date" content="2005-11-28" />
+-<link rel="stylesheet" href="../../../docutils/writers/html4css1/html4css1.css" type="text/css" />
++<link rel="stylesheet" href="/usr/share/docutils/writers/html4css1/html4css1.css" type="text/css" />
+ <!-- configuration parameters -->
+ <meta name="defaultView" content="slideshow" />
+ <meta name="controlVis" content="hidden" />
+--- a/test/functional/expected/standalone_rst_s5_html_2.html
++++ b/test/functional/expected/standalone_rst_s5_html_2.html
+@@ -8,7 +8,7 @@
+ <title>Slide Shows</title>
+ <meta name="author" content="David Goodger" />
+ <meta name="date" content="2005-11-28" />
+-<link rel="stylesheet" href="../../../docutils/writers/html4css1/html4css1.css" type="text/css" />
++<link rel="stylesheet" href="/usr/share/docutils/writers/html4css1/html4css1.css" type="text/css" />
+ <!-- configuration parameters -->
+ <meta name="defaultView" content="slideshow" />
+ <meta name="controlVis" content="hidden" />
+--- a/test/functional/tests/math_output_html.py
++++ b/test/functional/tests/math_output_html.py
+@@ -11,6 +11,6 @@
+
+ settings_overrides['math_output'] = 'HTML'
+ settings_overrides['stylesheet_path'] = (
+- '../docutils/writers/html4css1/html4css1.css, '
+- '../docutils/writers/html4css1/math.css ')
++ '/usr/share/docutils/writers/html4css1/html4css1.css, '
++ '/usr/share/docutils/writers/html4css1/math.css ')
+
+--- a/test/test_writers/test_html4css1_template.py
++++ b/test/test_writers/test_html4css1_template.py
+@@ -55,7 +55,7 @@
+
+
+ stylesheet = """\
+-<link rel="stylesheet" href="../docutils/writers/html4css1/html4css1.css" type="text/css" />"""
++<link rel="stylesheet" href="/usr/share/docutils/writers/html4css1/html4css1.css" type="text/css" />"""
+
+
+ body_prefix = """\
+@@ -112,7 +112,7 @@
+
+
+ stylesheet = """\
+-<link rel="stylesheet" href="../docutils/writers/html4css1/html4css1.css" type="text/css" />"""
++<link rel="stylesheet" href="/usr/share/docutils/writers/html4css1/html4css1.css" type="text/css" />"""
+
+
+ body_prefix = """\
+--- a/test/test_writers/test_s5.py
++++ b/test/test_writers/test_s5.py
+@@ -48,7 +48,7 @@
+ <meta name="generator" content="Docutils %(version)s: http://docutils.sourceforge.net/" />
+ <meta name="version" content="S5 1.1" />
+ <title>Show Title</title>
+-<link rel="stylesheet" href="../docutils/writers/html4css1/html4css1.css" type="text/css" />
++<link rel="stylesheet" href="/usr/share/docutils/writers/html4css1/html4css1.css" type="text/css" />
+ <!-- configuration parameters -->
+ <meta name="defaultView" content="slideshow" />
+ <meta name="controlVis" content="hidden" />
+@@ -113,7 +113,7 @@
+ <meta name="generator" content="Docutils %(version)s: http://docutils.sourceforge.net/" />
+ <meta name="version" content="S5 1.1" />
+ <title>Bogus Slide Show</title>
+-<link rel="stylesheet" href="../docutils/writers/html4css1/html4css1.css" type="text/css" />
++<link rel="stylesheet" href="/usr/share/docutils/writers/html4css1/html4css1.css" type="text/css" />
+ <!-- configuration parameters -->
+ <meta name="defaultView" content="outline" />
+ <meta name="controlVis" content="visible" />
Modified: packages/python-docutils/trunk/debian/patches/series
===================================================================
--- packages/python-docutils/trunk/debian/patches/series 2012-04-25 16:29:31 UTC (rev 21430)
+++ packages/python-docutils/trunk/debian/patches/series 2012-04-25 16:39:56 UTC (rev 21431)
@@ -13,3 +13,4 @@
fix-docutilsxmltestcase-debian.diff
no-test-skipping.diff
move-data-to-usr-share.diff
+# dep8.diff
Added: packages/python-docutils/trunk/debian/tests/control
===================================================================
--- packages/python-docutils/trunk/debian/tests/control (rev 0)
+++ packages/python-docutils/trunk/debian/tests/control 2012-04-25 16:39:56 UTC (rev 21431)
@@ -0,0 +1,7 @@
+Tests: python2
+Features: no-build-needed
+Depends: python-docutils
+
+Tests: python3
+Features: no-build-needed
+Depends: python3-docutils
Added: packages/python-docutils/trunk/debian/tests/python2
===================================================================
--- packages/python-docutils/trunk/debian/tests/python2 (rev 0)
+++ packages/python-docutils/trunk/debian/tests/python2 2012-04-25 16:39:56 UTC (rev 21431)
@@ -0,0 +1,15 @@
+#!/bin/sh
+set -e -u
+tmpdir=$(mktemp -t -d docutils.test.XXXXXXXX)
+cp -r test/* "$tmpdir"
+cat debian/patches/dep8.diff | (cd "$tmpdir" && patch -p2)
+cd "$tmpdir"
+export PYTHONWARNINGS=d
+pyversions -i \
+| tr ' ' '\n' \
+| xargs -I {} env {} \
+ ./alltests.py --verbose 2>&1
+cd /
+rm -rf "$tmpdir"
+
+# vim:ts=4 sw=4 et
Property changes on: packages/python-docutils/trunk/debian/tests/python2
___________________________________________________________________
Added: svn:executable
+ *
Added: packages/python-docutils/trunk/debian/tests/python3
===================================================================
--- packages/python-docutils/trunk/debian/tests/python3 (rev 0)
+++ packages/python-docutils/trunk/debian/tests/python3 2012-04-25 16:39:56 UTC (rev 21431)
@@ -0,0 +1,2 @@
+#!/bin/sh
+exit # not implemented yet
More information about the Python-modules-commits
mailing list