--- python-testtools-0.9.14.orig/debian/3xcompat.patch +++ python-testtools-0.9.14/debian/3xcompat.patch @@ -0,0 +1,39 @@ +=== removed file 'testtools/_compat2x.py' +--- old/testtools/_compat2x.py 2011-07-26 23:08:51 +0000 ++++ new/testtools/_compat2x.py 1970-01-01 00:00:00 +0000 +@@ -1,17 +0,0 @@ +-# Copyright (c) 2011 testtools developers. See LICENSE for details. +- +-"""Compatibility helpers that are valid syntax in Python 2.x. +- +-Only add things here if they *only* work in Python 2.x or are Python 2 +-alternatives to things that *only* work in Python 3.x. +-""" +- +-__all__ = [ +- 'reraise', +- ] +- +- +-def reraise(exc_class, exc_obj, exc_tb, _marker=object()): +- """Re-raise an exception received from sys.exc_info() or similar.""" +- raise exc_class, exc_obj, exc_tb +- + +=== modified file 'testtools/compat.py' +--- old/testtools/compat.py 2011-12-05 15:21:33 +0000 ++++ new/testtools/compat.py 2012-03-12 20:13:03 +0000 +@@ -32,11 +32,7 @@ + BytesIO = try_imports(['StringIO.StringIO', 'io.BytesIO']) + StringIO = try_imports(['StringIO.StringIO', 'io.StringIO']) + +-try: +- from testtools import _compat2x as _compat +- _compat +-except SyntaxError: +- from testtools import _compat3x as _compat ++from testtools import _compat3x as _compat + + reraise = _compat.reraise + + --- python-testtools-0.9.14.orig/debian/copyright +++ python-testtools-0.9.14/debian/copyright @@ -0,0 +1,24 @@ +This is python-testtools, packaged for Ubuntu by Elliot Murphy. +Now packaged for Debian by Robert Collins + +Homepage is https://launchpad.net/testtools + +Copyright (c) 2008 Jonathan M. Lange + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. --- python-testtools-0.9.14.orig/debian/python-testtools.docs +++ python-testtools-0.9.14/debian/python-testtools.docs @@ -0,0 +1 @@ +doc/_build/html --- python-testtools-0.9.14.orig/debian/compat +++ python-testtools-0.9.14/debian/compat @@ -0,0 +1 @@ +6 --- python-testtools-0.9.14.orig/debian/changelog +++ python-testtools-0.9.14/debian/changelog @@ -0,0 +1,67 @@ +python-testtools (0.9.14-2) unstable; urgency=low + + * Add python3-testtools package. + * Migrate to debhelper 7, for easier packaging for Python3. + + -- Jelmer Vernooij Mon, 12 Mar 2012 20:58:59 +0100 + +python-testtools (0.9.14-1) unstable; urgency=low + + * Add watch file. + * New upstream release. + + Now uses super to call setUp()/tearDown() for compatibility with + multiple inheritance and Python 2.7. LP: #771508 + * Add myself to uploaders. + * Bump standards version to 3.9.3 (no changes). + * Add Vcs-Bzr header. Closes: #574603 + * Migrate to dh_python2. Closes: #617036 + * Only install for Python 2.5 and later. LP: #847827 + * Run testsuite during package build. + + -- Jelmer Vernooij Sun, 11 Mar 2012 23:25:35 +0100 + +python-testtools (0.9.11-1) unstable; urgency=low + + * New upstream release. + * Ship new html docs instead of the (gone) ReST MANUAL. + + -- Robert Collins Sun, 12 Jun 2011 13:15:23 +1200 + +python-testtools (0.9.8-1) unstable; urgency=low + + * New upstream release. Closes: #606479 + + -- Robert Collins Sat, 18 Dec 2010 21:11:40 +1300 + +python-testtools (0.9.4-1) unstable; urgency=low + + * New upstream release. + + -- Robert Collins Sun, 04 Jul 2010 20:28:41 +1000 + +python-testtools (0.9.2-1) unstable; urgency=low + + * New upstream release. + * Include the manual in the package. + + -- Robert Collins Wed, 16 Dec 2009 10:10:03 +1100 + +python-testtools (0.9.0-1) unstable; urgency=low + + * New upstream release. + + -- Robert Collins Sun, 22 Nov 2009 14:31:14 +1100 + +python-testtools (0.1~r16-1) unstable; urgency=low + + * Add to Debian. Closes: #547479 + * Change Maintainer to me. + + -- Robert Collins Sun, 20 Sep 2009 16:45:45 +1000 + +python-testtools (0.1~r16-0ubuntu1) karmic; urgency=low + + * Initial release (LP: #359308) + * This is r16 from lp:~statik/testtools/add-manifest + + -- Elliot Murphy (personal) Wed, 08 Apr 2009 15:07:49 -0400 --- python-testtools-0.9.14.orig/debian/rules +++ python-testtools-0.9.14/debian/rules @@ -0,0 +1,34 @@ +#!/usr/bin/make -f + +PYTHONS:=$(shell pyversions -vr) +PYTHON3S:=$(shell py3versions -vr) + +%: + dh $@ --with python2,python3 + +override_dh_auto_build: + set -e && for pyvers in $(PYTHONS); do \ + python$$pyvers setup.py build; \ + done + set -e && for pyvers in $(PYTHON3S); do \ + python$$pyvers setup.py build; \ + done + $(MAKE) docs + +override_dh_auto_install: + set -e && for pyvers in $(PYTHONS); do \ + python$$pyvers setup.py install --install-layout=deb \ + --root $(CURDIR)/debian/python-testtools; \ + done + set -e && for pyvers in $(PYTHON3S); do \ + python$$pyvers setup.py install --install-layout=deb \ + --root $(CURDIR)/debian/python3-testtools; \ + done + # Remove 2x compat file as it causes errors during byte compilation on installation. + echo 'raise SyntaxError' > \ + $(CURDIR)/debian/python3-testtools/usr/lib/python3/dist-packages/testtools/_compat2x.py + +ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS))) +override_dh_auto_test: + $(MAKE) -C $(CURDIR) check +endif --- python-testtools-0.9.14.orig/debian/control +++ python-testtools-0.9.14/debian/control @@ -0,0 +1,48 @@ +Source: python-testtools +Maintainer: Robert Collins +Uploaders: Jelmer Vernooij +Section: python +Priority: optional +Standards-Version: 3.9.3 +Build-Depends: + debhelper (>= 7.0.50~), + python-all (>= 2.6.6-3~), + python3-all, + python-fixtures, + python-sphinx, + python-twisted +Vcs-Bzr: http://bzr.debian.org/bzr/collab-maint/python-testtools/unstable +X-Python-Version: >= 2.5 +X-Python3-Version: >= 3.0 +Homepage: https://launchpad.net/testtools + +Package: python-testtools +Architecture: all +Depends: ${python:Depends}, + ${misc:Depends}, + python-pkg-resources +Provides: ${python:Provides} +Breaks: python-subunit (<< 0.0.6) +Recommends: python-fixtures +Suggests: python-twisted +Description: Extensions to the Python unittest library + testtools (formerly pyunit3k) is a set of extensions to the Python standard + library's unit testing framework. These extensions have been derived from + years of experience with unit testing in Python and come from many different + sources. It's hoped that these extensions will make their way into the + standard library eventually. Also included are backports from Python trunk of + unittest features that are not otherwise available to existing unittest users. + +Package: python3-testtools +Architecture: all +Depends: ${python3:Depends}, + ${misc:Depends}, + python3-pkg-resources +Provides: ${python:Provides} +Description: Extensions to the Python unittest library + testtools (formerly pyunit3k) is a set of extensions to the Python standard + library's unit testing framework. These extensions have been derived from + years of experience with unit testing in Python and come from many different + sources. It's hoped that these extensions will make their way into the + standard library eventually. Also included are backports from Python trunk of + unittest features that are not otherwise available to existing unittest users. --- python-testtools-0.9.14.orig/debian/bzr-builddeb.conf +++ python-testtools-0.9.14/debian/bzr-builddeb.conf @@ -0,0 +1,3 @@ +[BUILDDEB] +upstream-branch = lp:testtools +export-upstream-revision = tag:testtools-$UPSTREAM_VERSION --- python-testtools-0.9.14.orig/debian/watch +++ python-testtools-0.9.14/debian/watch @@ -0,0 +1,2 @@ +version=3 +https://launchpad.net/testtools/+download https://launchpad.net/testtools/.*/testtools-(.*)\.tar\.gz