Package: codespeak-lib
Version: 1.4.8-1
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu quantal ubuntu-patch

Dear Maintainer,

This package has many tests (over 300) and it would be nice to be able to
enable the test suite.  But unfortunately, there is a circular dependency
with python-pytest.

However, using DEP-8, we can avoid that circular dependency by just running
the tests after build/install.

Here's a patch I just added in Ubuntu to enable DEP-8 tests.  Thanks for
considering it!


-- System Information:
Debian Release: wheezy/sid
  APT prefers quantal-updates
  APT policy: (500, 'quantal-updates'), (500, 'quantal-security'), (500, 
'quantal')
Architecture: i386 (i686)

Kernel: Linux 3.4.0-5-generic (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -Nru codespeak-lib-1.4.8/debian/changelog codespeak-lib-1.4.8/debian/changelog
diff -Nru codespeak-lib-1.4.8/debian/control codespeak-lib-1.4.8/debian/control
--- codespeak-lib-1.4.8/debian/control	2012-05-27 17:01:24.000000000 -0400
+++ codespeak-lib-1.4.8/debian/control	2012-06-21 09:07:14.000000000 -0400
@@ -5,6 +5,7 @@
 Build-Depends: debhelper (>= 7.0.50~), python-all (>= 2.6.6-3~), python3-all (>= 3.1.2-6~), python-setuptools, python3-setuptools
 Standards-Version: 3.9.2
 Homepage: http://codespeak.net/py/
+XS-Testsuite: autopkgtest
 XS-Python-Version: >= 2.5
 X-Python3-Version: << 3.3
 Vcs-Git: git://github.com/lamby/pkg-codespeak-lib.git
diff -Nru codespeak-lib-1.4.8/debian/tests/control codespeak-lib-1.4.8/debian/tests/control
--- codespeak-lib-1.4.8/debian/tests/control	1969-12-31 19:00:00.000000000 -0500
+++ codespeak-lib-1.4.8/debian/tests/control	2012-06-21 08:54:27.000000000 -0400
@@ -0,0 +1,2 @@
+Tests: unit
+Depends: python-py, python-pytest, python3-py, python3-pytest
diff -Nru codespeak-lib-1.4.8/debian/tests/unit codespeak-lib-1.4.8/debian/tests/unit
--- codespeak-lib-1.4.8/debian/tests/unit	1969-12-31 19:00:00.000000000 -0500
+++ codespeak-lib-1.4.8/debian/tests/unit	2012-06-21 09:02:02.000000000 -0400
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -e
+# enter testing directory so that we don't accidentally find 'py' directory
+# but instead use the system py module.
+cd testing
+python -m pytest .
+python3 -m pytest .

Reply via email to