debian/0000775000000000000000000000000012272727036007200 5ustar debian/rules0000775000000000000000000000337112143415602010252 0ustar #!/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 override_dh_installdocs: dh_installdocs # Replaces embedded copy of Jquery and Underscore javascript libs by # symlinks to available Debian packages. rm $(CURDIR)/debian/python-testtools/usr/share/doc/python-testtools/html/_static/jquery.js ln -s ../../../../javascript/jquery/jquery.js $(CURDIR)/debian/python-testtools/usr/share/doc/python-testtools/html/_static/jquery.js rm $(CURDIR)/debian/python-testtools/usr/share/doc/python-testtools/html/_static/underscore.js ln -s ../../../../javascript/underscore.js $(CURDIR)/debian/python-testtools/usr/share/doc/python-testtools/html/_static/underscore.js install -D -m 0644 debian/python-testtools.docbase $(CURDIR)/debian/python-testtools/usr/share/doc-base/python-testtools override_dh_clean: dh_clean rm -rf build testtools.egg-info doc/_build ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS))) override_dh_auto_test: $(MAKE) -C $(CURDIR) check endif debian/source/0000775000000000000000000000000012143415602010466 5ustar debian/source/format0000664000000000000000000000001412143415602011674 0ustar 3.0 (quilt) debian/python-testtools.docs0000664000000000000000000000002012143415602013407 0ustar doc/_build/html debian/compat0000664000000000000000000000000212143415602010364 0ustar 9 debian/copyright0000664000000000000000000000530312143415602011122 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: testtools Upstream-Contact: Jonathan M. Lange Source: https://github.com/testing-cabal/testtools Files: debian/* Copyright: (c) 2009, Elliot Murphy (c) 2009-2011, Robert Collins (c) 2012, Jelmer Vernooij License: MIT Files: testtools/run.py Copyright: (c) 1999-2003 Steve Purcell (c) 2003-2010 Python Software Foundation License: Python-license Files: * Copyright: (c) Canonical Ltd (c) Twisted Matrix Labs (c) 2008-2013, Jonathan M. Lange (c) Robert Collins (c) Andrew Bennetts (c) Benjamin Peterson (c) Jamu Kakar (c) James Westby (c) Martin [gz] (c) Michael Hudson-Doyle (c) Aaron Bentley (c) Christian Kampka (c) Gavin Panella (c) Martin Pool License: MIT License: Python-license This module is free software, and you may redistribute it and/or modify it under the same terms as Python itself, so long as this copyright message and disclaimer are retained in their original form. . IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF THIS CODE, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. . THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. License: MIT 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. debian/python-testtools.docbase0000664000000000000000000000135612143415602014074 0ustar Document: python-testtools Title: testtools: tasteful testing for Python Author: Python Testtools authors Abstract: Testtools is a set of extensions to the Python standard library unit testing framework. These extensions have been derived from many years of experience with unit testing in Python and come from many different sources. testtools also ports recent unittest changes all the way back to Python 2.4. The next release of testtools will change that to support versions that are maintained by the Python community instead, to allow the use of modern language features within testtools. Section: Programming/Python Format: HTML Index: /usr/share/doc/python-testtools/html/index.html Files: /usr/share/doc/python-testtools/html/*.html debian/control0000664000000000000000000000474712154106330010602 0ustar Source: python-testtools Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian Python Modules Team Uploaders: Robert Collins , Jelmer Vernooij , Thomas Goirand Section: python Priority: optional Standards-Version: 3.9.4 Build-Depends: debhelper (>= 9), python-all (>= 2.6.6-3~), python3-all, python-setuptools, python3-setuptools, python-extras, python-fixtures (>= 0.3.12~), python-sphinx, python-twisted, python-mimeparse, python3-mimeparse, python-testresources X-Python-Version: >= 2.6 X-Python3-Version: >= 3.0 Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/python-testtools/trunk/ Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/python-testtools/trunk/ Homepage: http://pypi.python.org/pypi/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, libjs-jquery, libjs-underscore Suggests: python-twisted Description: Extensions to the Python unittest library (Python 2.x) 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. . This package contains the libraries for Python 2.x. Package: python3-testtools Architecture: all Depends: ${python3:Depends}, ${misc:Depends}, python3-pkg-resources Provides: ${python:Provides} Description: Extensions to the Python unittest library (Python 3.x) 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. . This package contains the libraries for Python 3.x. debian/3xcompat.patch0000664000000000000000000000221212143415602011742 0ustar === 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 debian/watch0000664000000000000000000000013412143415602010215 0ustar version=3 https://github.com/testing-cabal/testtools/tags .*/testtools-(\d[\d\.]+)\.tar\.gz debian/changelog0000664000000000000000000001225612272727012011052 0ustar python-testtools (0.9.35-0ubuntu1) trusty; urgency=medium * New upstream release. -- Chuck Short Fri, 31 Jan 2014 09:06:53 -0500 python-testtools (0.9.33-0ubuntu1) trusty; urgency=low * New upstream release. -- Chuck Short Tue, 12 Nov 2013 09:26:26 -0500 python-testtools (0.9.32-0ubuntu1) saucy; urgency=low * New upstream release. -- Chuck Short Fri, 06 Sep 2013 22:43:05 -0400 python-testtools (0.9.30-0ubuntu4) saucy; urgency=low * debian/control: Fix typo. -- Chuck Short Thu, 06 Jun 2013 08:21:33 -0500 python-testtools (0.9.30-0ubuntu3) saucy; urgency=low * debian/control: Add python3-mimeparse dependency. -- Chuck Short Thu, 06 Jun 2013 07:07:26 -0500 python-testtools (0.9.30-0ubuntu2) saucy; urgency=low * debian/control: Add python-testresources dependency. -- Chuck Short Wed, 05 Jun 2013 09:33:59 -0500 python-testtools (0.9.30-0ubuntu1) saucy; urgency=low * New upstream release. * debian/control: Add python-mimeparse dependency. -- Chuck Short Tue, 04 Jun 2013 13:21:59 -0500 python-testtools (0.9.29-3ubuntu1) saucy; urgency=low * Merge from Debian unstable. Remaining changes: - Replace node-underscore with libjs-underscore in Recommends. -- Adam Conrad Sun, 26 May 2013 05:38:56 -0600 python-testtools (0.9.29-3) unstable; urgency=low [ Jakub Wilk ] * Use canonical URIs for Vcs-* fields. [ Thomas Goirand ] * Uploading to unstable. -- Thomas Goirand Sat, 11 May 2013 06:23:25 +0000 python-testtools (0.9.29-2ubuntu1) saucy; urgency=low * Replace node-underscore with libjs-underscore in Recommends. -- Adam Conrad Wed, 08 May 2013 14:14:39 -0600 python-testtools (0.9.29-2) experimental; urgency=low * Added missing build-depends: python3-setuptools, python-setuptools and python-extras. * Build-depends: python-fixtures must be >= 0.3.12~ -- Thomas Goirand Wed, 13 Mar 2013 18:49:02 +0000 python-testtools (0.9.29-1) experimental; urgency=low * New upstream release. * Rewrote debian/copyright using parsable format 1.0. * Now using source format 3.0 (quilt). * Standard-Version is now 3.9.4. * Compat and debhelper are now 9. * X-Python-Version: >= 2.6 instead of 2.5. * Removes embedded version of jquery.js and underscore.js, and recommends corresponding Debian packages. * Sets the Debian Python Modules Team as new Maintainer:, switches the VCS field to the SVN of the team, removed debian/bzr-builddeb.conf. * Added minor changes in long and short descriptions (so that python 2 and 3 modules don't have the same descriptions). * The watch file now uses tags from github. * Cleans now does rm -rf build testtools.egg-info doc/_build. * Added doc-base registration. -- Thomas Goirand Fri, 15 Feb 2013 12:18:38 +0000 python-testtools (0.9.21-1) experimental; urgency=low * New upstream release. -- Jelmer Vernooij Fri, 07 Dec 2012 01:06:06 +0100 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