Package: python-simplejson
Version: 3.3.1-1
Severity: normal
Tags: patch
Usertags: origin-ubuntu trusty ubuntu-patch
Dear Maintainer,
This package has a testsuite of +100 tests, the patch attached has been
merged in Ubuntu and adds supports for autopkgtest to run the testsuite
against the package as-installed.
I used py.test instead of calling __init__.py as setup.py does because
init adds the root of the source tree to the path and we want to run the
testsuite against the package on the system.
Thanks for considering this patch.
Jean-Baptiste.
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.12.0-2-generic (SMP w/6 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Versions of packages python-simplejson depends on:
ii libc6 2.17-95
pn python:any <none>
Versions of packages python-simplejson recommends:
ii libjs-jquery 1.7.2+dfsg-3
python-simplejson suggests no packages.
-- no debconf information
=== modified file 'debian/changelog'
--- debian/changelog 2013-11-15 11:44:48 +0000
+++ debian/changelog 2013-11-15 11:40:17 +0000
@@ -1,3 +1,10 @@
+simplejson (3.3.1-1ubuntu4) UNRELEASED; urgency=low
+
+ * Enable autopkgtest that runs the upstream test suite against the installed
+ package.
+
+ -- Jean-Baptiste Lallement <jean-baptiste.lallem...@canonical.com> Fri, 15
Nov 2013 12:38:07 +0100
+
simplejson (3.3.1-1ubuntu3) trusty; urgency=low
* debian/rules:
=== modified file 'debian/control'
--- debian/control 2013-11-14 10:57:12 +0000
+++ debian/control 2013-11-15 11:37:29 +0000
@@ -13,6 +13,7 @@
X-Python3-Version: >= 3.2
Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/simplejson/trunk/
Vcs-Browser:
http://anonscm.debian.org/viewvc/python-modules/packages/simplejson/trunk/
+XS-Testsuite: autopkgtest
Package: python-simplejson
Architecture: any
=== added directory 'debian/tests'
=== added file 'debian/tests/control'
--- debian/tests/control 1970-01-01 00:00:00 +0000
+++ debian/tests/control 2013-11-15 11:15:29 +0000
@@ -0,0 +1,5 @@
+Tests: upstream
+Depends: @, python-pytest
+
+Tests: upstream-3
+Depends: @, python3-pytest
=== added file 'debian/tests/upstream'
--- debian/tests/upstream 1970-01-01 00:00:00 +0000
+++ debian/tests/upstream 2013-11-15 11:24:08 +0000
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+py.test -vs simplejson
=== added file 'debian/tests/upstream-3'
--- debian/tests/upstream-3 1970-01-01 00:00:00 +0000
+++ debian/tests/upstream-3 2013-11-15 11:29:02 +0000
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+py.test-3 -vs simplejson