[Python-modules-commits] [tox] 32/69: tox (1.7.1-1) unstable; urgency=low

Barry Warsaw barry at moszumanska.debian.org
Fri Sep 5 23:26:26 UTC 2014


This is an automated email from the git hooks/post-receive script.

barry pushed a commit to branch master
in repository tox.

commit f67bf309ee05320c1e90c3cee65af72a04f642d3
Author: Barry Warsaw <barry at debian.org>
Date:   Tue Jun 17 16:05:44 2014 -0400

    tox (1.7.1-1) unstable; urgency=low
    
      * New upstream release.
      * d/control:
        - Re-enable DEP 8 tests.
        - Add missing Build-Depend dependencies.
        - Switch to using Python 3 only.
        - Add to Depends: python3-py, python3-virtualenv
        - Add X-Python3-Version header and remove X-Python-Version header.
        - Bump Standards-Version to 3.9.5 with no other changes necessary.
        - Fix virtualenv dependency.  Closes: #755193
      * d/rules:
        - Switch to Python 3.  Closes: #746236
        - override_dh_auto_clean removes .tox directory.  Closes: #751803
      * d/tests
        - built: Simplify and switch to /bin/sh.
        - control: Update to use Python 3 dependencies.
      * d/patches:
        - hack-requires.patch: Added; use Depends instead.
        - build-time-tests.patch: Added; skips build-time tests which
          require an installed `tox` executable.  These are tested by the DEP-8
          tests.
        - de-google-ify.patch: Added; fixes privacy-breach-google-adsense
          lintian errors.
        - test-fixes.patch: Removed; applied upstream.
        - no-download.patch: Removed; obsolete.
        - testenv-deps.patch: Removed; obsolete.
      * d/python-tox.pyremove: Removed.
      * d/python-tox.docs: Update.
---
 debian/changelog                         |  91 ++++++++
 debian/compat                            |   1 +
 debian/control                           |  41 ++++
 debian/copyright                         | 358 +++++++++++++++++++++++++++++++
 debian/manpage/Makefile                  | 153 +++++++++++++
 debian/manpage/conf.py                   | 243 +++++++++++++++++++++
 debian/manpage/tox-man.rst               |  43 ++++
 debian/patches/build-time-tests.patch    | 227 ++++++++++++++++++++
 debian/patches/de-google-ify.patch       |  16 ++
 debian/patches/hack-requires.patch       |  35 +++
 debian/patches/intersphinx_mapping.patch |  37 ++++
 debian/patches/series                    |   4 +
 debian/python-tox.doc-base               |  14 ++
 debian/python-tox.docs                   |   3 +
 debian/rules                             |  49 +++++
 debian/source/format                     |   1 +
 debian/tests/built                       |   5 +
 debian/tests/control                     |   2 +
 debian/watch                             |   2 +
 19 files changed, 1325 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..e03ff28
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,91 @@
+tox (1.7.1-1) unstable; urgency=low
+
+  * New upstream release.
+  * d/control:
+    - Re-enable DEP 8 tests.
+    - Add missing Build-Depend dependencies.
+    - Switch to using Python 3 only.
+    - Add to Depends: python3-py, python3-virtualenv
+    - Add X-Python3-Version header and remove X-Python-Version header.
+    - Bump Standards-Version to 3.9.5 with no other changes necessary.
+    - Fix virtualenv dependency.  Closes: #755193
+  * d/rules: 
+    - Switch to Python 3.  Closes: #746236
+    - override_dh_auto_clean removes .tox directory.  Closes: #751803
+  * d/tests
+    - built: Simplify and switch to /bin/sh.
+    - control: Update to use Python 3 dependencies.
+  * d/patches:
+    - hack-requires.patch: Added; use Depends instead.
+    - build-time-tests.patch: Added; skips build-time tests which
+      require an installed `tox` executable.  These are tested by the DEP-8
+      tests.
+    - de-google-ify.patch: Added; fixes privacy-breach-google-adsense
+      lintian errors.
+    - test-fixes.patch: Removed; applied upstream.
+    - no-download.patch: Removed; obsolete.
+    - testenv-deps.patch: Removed; obsolete.
+  * d/python-tox.pyremove: Removed.
+  * d/python-tox.docs: Update.
+
+ -- Barry Warsaw <barry at debian.org>  Tue, 17 Jun 2014 16:05:44 -0400
+
+tox (1.6.0-1) unstable; urgency=low
+
+  * New upstream release.
+    - d/patches/upstream-issue58.patch: Removed; applied upstream.
+    - d/patches/no-download.patch: Refreshed.
+    - d/patches/pytest-dep-version.patch: Removed; no longer necessary.
+    - d/patches/testenv-deps.patch: Added
+    - d/patches/test_fixes.patch: Added
+    - d/patches/no-download.patch, d/copyright, d/manpage/conf.py:
+      Update author email.
+
+ -- Barry Warsaw <barry at debian.org>  Tue, 20 Aug 2013 21:48:05 -0400
+
+tox (1.5.0-1) unstable; urgency=low
+
+  [ Jakub Wilk ]
+  * Use canonical URIs for Vcs-* fields.
+
+  [ Barry Warsaw ]
+  * New upstream release.  (Closes: #702009)
+  * d/control: Update maintainer email.
+  * d/patches/no-download.patch: Refreshed.
+  * d/patches/pytest-dep-version.patch: Disable instafail dependency
+    for now until that package clears NEW.
+  * d/rules: Remove get-orig-source since upstream now releases a .tar.gz.
+  * d/python-tox.docs: README.txt was renamed to README.rst.
+
+ -- Barry Warsaw <barry at debian.org>  Mon, 15 Jul 2013 13:47:06 -0400
+
+tox (1.4.3-1) unstable; urgency=low
+
+  * New upstream release
+  * debian/watch: Update URL since upstream now releases tar.gz files.
+  * debian/rules: No more need for $FAKEHOME.
+  * debian/patches/no-download.patch: Refreshed.
+
+ -- Barry Warsaw <barry at python.org>  Fri, 01 Mar 2013 10:25:03 -0500
+
+tox (1.4.2-2) unstable; urgency=low
+
+  * debian/patches/no-download.patch: Modify tox's own tox.ini file to
+    prevent unintended downloads of dependencies from remote Python
+    package servers.
+  * debian/control: Add B-D for python-pytest.
+  * debian/rules:
+    + Hack $PYTHONPATH to include the system Python's dist-packages when
+      running tox's own tox test.  Without this, the system installed
+      dependencies will not be found (since they aren't downloaded as per
+      above).
+    + Export $http_proxy to additionally prevent unintended internet
+      access by setuptools.
+
+ -- Barry Warsaw <barry at python.org>  Wed, 28 Nov 2012 14:59:23 -0500
+
+tox (1.4.2-1) unstable; urgency=low
+
+  * Initial release. (Closes: #664759)
+
+ -- Barry Warsaw <barry at python.org>  Fri, 09 Nov 2012 18:07:19 -0500
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..45a4fb7
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+8
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..a5c28dd
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,41 @@
+Source: tox
+Section: python
+Priority: optional
+Maintainer: Barry Warsaw <barry at debian.org>
+Uploaders: Python Applications Packaging Team <python-apps-team at lists.alioth.debian.org>
+Homepage: http://codespeak.net/tox
+Build-Depends: debhelper (>= 8),
+               python3-all,
+               python3-pip,
+               python3-pkg-resources,
+               python3-py,
+               python3-pytest,
+               python3-setuptools,
+               python3-sphinx,
+               python3-virtualenv
+Standards-Version: 3.9.5
+Vcs-Svn: svn://anonscm.debian.org/python-apps/packages/tox/trunk/
+Vcs-Browser: http://anonscm.debian.org/viewvc/python-apps/packages/tox/trunk/
+X-Python3-Version: >= 3.2
+XS-Testsuite: autopkgtest
+
+Package: python-tox
+Architecture: all
+Depends: python3,
+         python3-pkg-resources,
+         python3-py,
+         python3-virtualenv,
+         virtualenv,
+         ${misc:Depends},
+         ${python3:Depends},
+         ${sphinxdoc:Depends}
+Description: virtualenv-based automation of test activities
+ Tox as is a generic virtualenv management and test command line tool
+ you can use for:
+ .
+  * checking your package installs correctly with different Python
+    versions and interpreters
+  * running your tests in each of the environments, configuring your
+    test tool of choice
+  * acting as a frontend to Continuous Integration servers, greatly
+    reducing boilerplate and merging CI and shell-based testing.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..4e5264b
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,358 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: tox
+Upstream-Contact: Holger Krekel <holger at merlinux.eu>
+Source: http://pypi.python.org/pypi/tox
+
+Files: *
+Copyright: 2011 Holger Kregel <holger at merlinux.eu>
+License: GPL-2+
+
+Files: toxbootstrap.py
+Copyright: 2010-2011 Holger Kregel, Sridhar Ratnakumar
+License: Expat
+Comment: See also CONTRIBUTORS
+
+Files: tox/_verlib.py
+Copyright: 2010 Tarek Ziade and others
+License: Python
+
+Files: debian/*
+Copyright: 2012 Bradley Froehle <brad.froehle at gmail.com>
+License: GPL-2+
+
+Files: debian/watch debian/tests/* files/manpage/*
+Copyright: 2012 Barry Warsaw <barry at debian.org>
+License: GPL-2+
+
+License: GPL-2+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+ .
+ On Debian systems, the complete text of the GPL-2 can be found in
+ /usr/share/common-licenses/GPL-2
+
+License: Expat
+ Copyright (c) 1998, 1999, 2000 Thai Open Source Software Center Ltd
+ .
+ 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.
+
+License: Python
+ A. HISTORY OF THE SOFTWARE
+ ==========================
+ .
+ Python was created in the early 1990s by Guido van Rossum at Stichting
+ Mathematisch Centrum (CWI, see http://www.cwi.nl) in the Netherlands
+ as a successor of a language called ABC.  Guido remains Python's
+ principal author, although it includes many contributions from others.
+ .
+ In 1995, Guido continued his work on Python at the Corporation for
+ National Research Initiatives (CNRI, see http://www.cnri.reston.va.us)
+ in Reston, Virginia where he released several versions of the
+ software.
+ .
+ In May 2000, Guido and the Python core development team moved to
+ BeOpen.com to form the BeOpen PythonLabs team.  In October of the same
+ year, the PythonLabs team moved to Digital Creations (now Zope
+ Corporation, see http://www.zope.com).  In 2001, the Python Software
+ Foundation (PSF, see http://www.python.org/psf/) was formed, a
+ non-profit organization created specifically to own Python-related
+ Intellectual Property.  Zope Corporation is a sponsoring member of
+ the PSF.
+ .
+ All Python releases are Open Source (see http://www.opensource.org for
+ the Open Source Definition).  Historically, most, but not all, Python
+ releases have also been GPL-compatible; the table below summarizes
+ the various releases.
+ .
+     Release         Derived     Year        Owner       GPL-
+                     from                                compatible? (1)
+ .
+     0.9.0 thru 1.2              1991-1995   CWI         yes
+     1.3 thru 1.5.2  1.2         1995-1999   CNRI        yes
+     1.6             1.5.2       2000        CNRI        no
+     2.0             1.6         2000        BeOpen.com  no
+     1.6.1           1.6         2001        CNRI        yes (2)
+     2.1             2.0+1.6.1   2001        PSF         no
+     2.0.1           2.0+1.6.1   2001        PSF         yes
+     2.1.1           2.1+2.0.1   2001        PSF         yes
+     2.2             2.1.1       2001        PSF         yes
+     2.1.2           2.1.1       2002        PSF         yes
+     2.1.3           2.1.2       2002        PSF         yes
+     2.2.1           2.2         2002        PSF         yes
+     2.2.2           2.2.1       2002        PSF         yes
+     2.2.3           2.2.2       2003        PSF         yes
+     2.3             2.2.2       2002-2003   PSF         yes
+     2.3.1           2.3         2002-2003   PSF         yes
+     2.3.2           2.3.1       2002-2003   PSF         yes
+     2.3.3           2.3.2       2002-2003   PSF         yes
+     2.3.4           2.3.3       2004        PSF         yes
+     2.3.5           2.3.4       2005        PSF         yes
+     2.4             2.3         2004        PSF         yes
+     2.4.1           2.4         2005        PSF         yes
+     2.4.2           2.4.1       2005        PSF         yes
+     2.4.3           2.4.2       2006        PSF         yes
+     2.4.4           2.4.3       2006        PSF         yes
+     2.5             2.4         2006        PSF         yes
+     2.5.1           2.5         2007        PSF         yes
+     2.5.2           2.5.1       2008        PSF         yes
+     2.5.3           2.5.2       2008        PSF         yes
+     2.6             2.5         2008        PSF         yes
+     2.6.1           2.6         2008        PSF         yes
+     2.6.2           2.6.1       2009        PSF         yes
+     2.6.3           2.6.2       2009        PSF         yes
+     2.6.4           2.6.3       2009        PSF         yes
+     2.6.5           2.6.4       2010        PSF         yes
+     3.0             2.6         2008        PSF         yes
+     3.0.1           3.0         2009        PSF         yes
+     3.1             3.0.1       2009        PSF         yes
+     3.1.1           3.1         2009        PSF         yes
+     3.1.2           3.1.1       2010        PSF         yes
+     3.1.3           3.1.2       2010        PSF         yes
+     3.1.4           3.1.3       2011        PSF         yes
+     3.2             3.1         2011        PSF         yes
+     3.2.1           3.2         2011        PSF         yes
+     3.2.2           3.2.1       2011        PSF         yes
+     3.2.3           3.2.2       2012        PSF         yes
+     3.3.0           3.2         2012        PSF         yes
+     3.4.0           3.3.0       2014        PSF         yes
+ .
+ Footnotes:
+ .
+ (1) GPL-compatible doesn't mean that we're distributing Python under
+     the GPL.  All Python licenses, unlike the GPL, let you distribute
+     a modified version without making your changes open source.  The
+     GPL-compatible licenses make it possible to combine Python with
+     other software that is released under the GPL; the others don't.
+ .
+ (2) According to Richard Stallman, 1.6.1 is not GPL-compatible,
+     because its license has a choice of law clause.  According to
+     CNRI, however, Stallman's lawyer has told CNRI's lawyer that 1.6.1
+     is "not incompatible" with the GPL.
+ .
+ Thanks to the many outside volunteers who have worked under Guido's
+ direction to make these releases possible.
+ .
+ .
+ B. TERMS AND CONDITIONS FOR ACCESSING OR OTHERWISE USING PYTHON
+ ===============================================================
+ .
+ PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
+ --------------------------------------------
+ .
+ 1. This LICENSE AGREEMENT is between the Python Software Foundation
+ ("PSF"), and the Individual or Organization ("Licensee") accessing and
+ otherwise using this software ("Python") in source or binary form and
+ its associated documentation.
+ .
+ 2. Subject to the terms and conditions of this License Agreement, PSF hereby
+ grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,
+ analyze, test, perform and/or display publicly, prepare derivative works,
+ distribute, and otherwise use Python alone or in any derivative version,
+ provided, however, that PSF's License Agreement and PSF's notice of copyright,
+ i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
+ 2011, 2012 Python Software Foundation; All Rights Reserved" are retained in Python
+ alone or in any derivative version prepared by Licensee.
+ .
+ 3. In the event Licensee prepares a derivative work that is based on
+ or incorporates Python or any part thereof, and wants to make
+ the derivative work available to others as provided herein, then
+ Licensee hereby agrees to include in any such work a brief summary of
+ the changes made to Python.
+ .
+ 4. PSF is making Python available to Licensee on an "AS IS"
+ basis.  PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
+ IMPLIED.  BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND
+ DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
+ FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT
+ INFRINGE ANY THIRD PARTY RIGHTS.
+ .
+ 5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
+ FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
+ A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON,
+ OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
+ .
+ 6. This License Agreement will automatically terminate upon a material
+ breach of its terms and conditions.
+ .
+ 7. Nothing in this License Agreement shall be deemed to create any
+ relationship of agency, partnership, or joint venture between PSF and
+ Licensee.  This License Agreement does not grant permission to use PSF
+ trademarks or trade name in a trademark sense to endorse or promote
+ products or services of Licensee, or any third party.
+ .
+ 8. By copying, installing or otherwise using Python, Licensee
+ agrees to be bound by the terms and conditions of this License
+ Agreement.
+ .
+ .
+ BEOPEN.COM LICENSE AGREEMENT FOR PYTHON 2.0
+ -------------------------------------------
+ .
+ BEOPEN PYTHON OPEN SOURCE LICENSE AGREEMENT VERSION 1
+ .
+ 1. This LICENSE AGREEMENT is between BeOpen.com ("BeOpen"), having an
+ office at 160 Saratoga Avenue, Santa Clara, CA 95051, and the
+ Individual or Organization ("Licensee") accessing and otherwise using
+ this software in source or binary form and its associated
+ documentation ("the Software").
+ .
+ 2. Subject to the terms and conditions of this BeOpen Python License
+ Agreement, BeOpen hereby grants Licensee a non-exclusive,
+ royalty-free, world-wide license to reproduce, analyze, test, perform
+ and/or display publicly, prepare derivative works, distribute, and
+ otherwise use the Software alone or in any derivative version,
+ provided, however, that the BeOpen Python License is retained in the
+ Software, alone or in any derivative version prepared by Licensee.
+ .
+ 3. BeOpen is making the Software available to Licensee on an "AS IS"
+ basis.  BEOPEN MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
+ IMPLIED.  BY WAY OF EXAMPLE, BUT NOT LIMITATION, BEOPEN MAKES NO AND
+ DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
+ FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE WILL NOT
+ INFRINGE ANY THIRD PARTY RIGHTS.
+ .
+ 4. BEOPEN SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF THE
+ SOFTWARE FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS
+ AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THE SOFTWARE, OR ANY
+ DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
+ .
+ 5. This License Agreement will automatically terminate upon a material
+ breach of its terms and conditions.
+ .
+ 6. This License Agreement shall be governed by and interpreted in all
+ respects by the law of the State of California, excluding conflict of
+ law provisions.  Nothing in this License Agreement shall be deemed to
+ create any relationship of agency, partnership, or joint venture
+ between BeOpen and Licensee.  This License Agreement does not grant
+ permission to use BeOpen trademarks or trade names in a trademark
+ sense to endorse or promote products or services of Licensee, or any
+ third party.  As an exception, the "BeOpen Python" logos available at
+ http://www.pythonlabs.com/logos.html may be used according to the
+ permissions granted on that web page.
+ .
+ 7. By copying, installing or otherwise using the software, Licensee
+ agrees to be bound by the terms and conditions of this License
+ Agreement.
+ .
+ .
+ CNRI LICENSE AGREEMENT FOR PYTHON 1.6.1
+ ---------------------------------------
+ .
+ 1. This LICENSE AGREEMENT is between the Corporation for National
+ Research Initiatives, having an office at 1895 Preston White Drive,
+ Reston, VA 20191 ("CNRI"), and the Individual or Organization
+ ("Licensee") accessing and otherwise using Python 1.6.1 software in
+ source or binary form and its associated documentation.
+ .
+ 2. Subject to the terms and conditions of this License Agreement, CNRI
+ hereby grants Licensee a nonexclusive, royalty-free, world-wide
+ license to reproduce, analyze, test, perform and/or display publicly,
+ prepare derivative works, distribute, and otherwise use Python 1.6.1
+ alone or in any derivative version, provided, however, that CNRI's
+ License Agreement and CNRI's notice of copyright, i.e., "Copyright (c)
+ 1995-2001 Corporation for National Research Initiatives; All Rights
+ Reserved" are retained in Python 1.6.1 alone or in any derivative
+ version prepared by Licensee.  Alternately, in lieu of CNRI's License
+ Agreement, Licensee may substitute the following text (omitting the
+ quotes): "Python 1.6.1 is made available subject to the terms and
+ conditions in CNRI's License Agreement.  This Agreement together with
+ Python 1.6.1 may be located on the Internet using the following
+ unique, persistent identifier (known as a handle): 1895.22/1013.  This
+ Agreement may also be obtained from a proxy server on the Internet
+ using the following URL: http://hdl.handle.net/1895.22/1013".
+ .
+ 3. In the event Licensee prepares a derivative work that is based on
+ or incorporates Python 1.6.1 or any part thereof, and wants to make
+ the derivative work available to others as provided herein, then
+ Licensee hereby agrees to include in any such work a brief summary of
+ the changes made to Python 1.6.1.
+ .
+ 4. CNRI is making Python 1.6.1 available to Licensee on an "AS IS"
+ basis.  CNRI MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
+ IMPLIED.  BY WAY OF EXAMPLE, BUT NOT LIMITATION, CNRI MAKES NO AND
+ DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
+ FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 1.6.1 WILL NOT
+ INFRINGE ANY THIRD PARTY RIGHTS.
+ .
+ 5. CNRI SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
+ 1.6.1 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
+ A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 1.6.1,
+ OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
+ .
+ 6. This License Agreement will automatically terminate upon a material
+ breach of its terms and conditions.
+ .
+ 7. This License Agreement shall be governed by the federal
+ intellectual property law of the United States, including without
+ limitation the federal copyright law, and, to the extent such
+ U.S. federal law does not apply, by the law of the Commonwealth of
+ Virginia, excluding Virginia's conflict of law provisions.
+ Notwithstanding the foregoing, with regard to derivative works based
+ on Python 1.6.1 that incorporate non-separable material that was
+ previously distributed under the GNU General Public License (GPL), the
+ law of the Commonwealth of Virginia shall govern this License
+ Agreement only as to issues arising under or with respect to
+ Paragraphs 4, 5, and 7 of this License Agreement.  Nothing in this
+ License Agreement shall be deemed to create any relationship of
+ agency, partnership, or joint venture between CNRI and Licensee.  This
+ License Agreement does not grant permission to use CNRI trademarks or
+ trade name in a trademark sense to endorse or promote products or
+ services of Licensee, or any third party.
+ .
+ 8. By clicking on the "ACCEPT" button where indicated, or by copying,
+ installing or otherwise using Python 1.6.1, Licensee agrees to be
+ bound by the terms and conditions of this License Agreement.
+ .
+         ACCEPT
+ .
+ .
+ CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2
+ --------------------------------------------------
+ .
+ Copyright (c) 1991 - 1995, Stichting Mathematisch Centrum Amsterdam,
+ The Netherlands.  All rights reserved.
+ .
+ Permission to use, copy, modify, and distribute this software and its
+ documentation for any purpose and without fee is hereby granted,
+ provided that the above copyright notice appear in all copies and that
+ both that copyright notice and this permission notice appear in
+ supporting documentation, and that the name of Stichting Mathematisch
+ Centrum or CWI not be used in advertising or publicity pertaining to
+ distribution of the software without specific, written prior
+ permission.
+ .
+ STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
+ THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE
+ FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
+ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/debian/manpage/Makefile b/debian/manpage/Makefile
new file mode 100644
index 0000000..b1835d2
--- /dev/null
+++ b/debian/manpage/Makefile
@@ -0,0 +1,153 @@
+# Makefile for Sphinx documentation
+#
+
+# You can set these variables from the command line.
+SPHINXOPTS    =
+SPHINXBUILD   = sphinx-build
+PAPER         =
+BUILDDIR      = _build
+
+# Internal variables.
+PAPEROPT_a4     = -D latex_paper_size=a4
+PAPEROPT_letter = -D latex_paper_size=letter
+ALLSPHINXOPTS   = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
+# the i18n builder cannot share the environment and doctrees with the others
+I18NSPHINXOPTS  = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
+
+.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
+
+help:
+	@echo "Please use \`make <target>' where <target> is one of"
+	@echo "  html       to make standalone HTML files"
+	@echo "  dirhtml    to make HTML files named index.html in directories"
+	@echo "  singlehtml to make a single large HTML file"
+	@echo "  pickle     to make pickle files"
+	@echo "  json       to make JSON files"
+	@echo "  htmlhelp   to make HTML files and a HTML help project"
+	@echo "  qthelp     to make HTML files and a qthelp project"
+	@echo "  devhelp    to make HTML files and a Devhelp project"
+	@echo "  epub       to make an epub"
+	@echo "  latex      to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
+	@echo "  latexpdf   to make LaTeX files and run them through pdflatex"
+	@echo "  text       to make text files"
+	@echo "  man        to make manual pages"
+	@echo "  texinfo    to make Texinfo files"
+	@echo "  info       to make Texinfo files and run them through makeinfo"
+	@echo "  gettext    to make PO message catalogs"
+	@echo "  changes    to make an overview of all changed/added/deprecated items"
+	@echo "  linkcheck  to check all external links for integrity"
+	@echo "  doctest    to run all doctests embedded in the documentation (if enabled)"
+
+clean:
+	-rm -rf $(BUILDDIR)/*
+
+html:
+	$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
+	@echo
+	@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
+
+dirhtml:
+	$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
+	@echo
+	@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
+
+singlehtml:
+	$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
+	@echo
+	@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
+
+pickle:
+	$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
+	@echo
+	@echo "Build finished; now you can process the pickle files."
+
+json:
+	$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
+	@echo
+	@echo "Build finished; now you can process the JSON files."
+
+htmlhelp:
+	$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
+	@echo
+	@echo "Build finished; now you can run HTML Help Workshop with the" \
+	      ".hhp project file in $(BUILDDIR)/htmlhelp."
+
+qthelp:
+	$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
+	@echo
+	@echo "Build finished; now you can run "qcollectiongenerator" with the" \
+	      ".qhcp project file in $(BUILDDIR)/qthelp, like this:"
+	@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/tox.qhcp"
+	@echo "To view the help file:"
+	@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/tox.qhc"
+
+devhelp:
+	$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
+	@echo
+	@echo "Build finished."
+	@echo "To view the help file:"
+	@echo "# mkdir -p $$HOME/.local/share/devhelp/tox"
+	@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/tox"
+	@echo "# devhelp"
+
+epub:
+	$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
+	@echo
+	@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
+
+latex:
+	$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
+	@echo
+	@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
+	@echo "Run \`make' in that directory to run these through (pdf)latex" \
+	      "(use \`make latexpdf' here to do that automatically)."
+
+latexpdf:
+	$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
+	@echo "Running LaTeX files through pdflatex..."
+	$(MAKE) -C $(BUILDDIR)/latex all-pdf
+	@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
+
+text:
+	$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
+	@echo
+	@echo "Build finished. The text files are in $(BUILDDIR)/text."
+
+man:
+	$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
+	@echo
+	@echo "Build finished. The manual pages are in $(BUILDDIR)/man."
+
+texinfo:
+	$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
+	@echo
+	@echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
+	@echo "Run \`make' in that directory to run these through makeinfo" \
+	      "(use \`make info' here to do that automatically)."
+
+info:
+	$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
+	@echo "Running Texinfo files through makeinfo..."
+	make -C $(BUILDDIR)/texinfo info
+	@echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
+
+gettext:
+	$(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
+	@echo
+	@echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
+
+changes:
+	$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
+	@echo
+	@echo "The overview file is in $(BUILDDIR)/changes."
+
+linkcheck:
+	$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
+	@echo
+	@echo "Link check complete; look for any errors in the above output " \
+	      "or in $(BUILDDIR)/linkcheck/output.txt."
+
+doctest:
+	$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
+	@echo "Testing of doctests in the sources finished, look at the " \
+	      "results in $(BUILDDIR)/doctest/output.txt."
diff --git a/debian/manpage/conf.py b/debian/manpage/conf.py
new file mode 100644
index 0000000..5ffb7ba
--- /dev/null
+++ b/debian/manpage/conf.py
@@ -0,0 +1,243 @@
+# -*- coding: utf-8 -*-
+#
+# tox documentation build configuration file, created by
+# sphinx-quickstart on Fri Nov  9 19:00:14 2012.
+#
+# This file is execfile()d with the current directory set to its containing dir.
+#
+# Note that not all possible configuration values are present in this
+# autogenerated file.
+#
+# All configuration values have a default; values that are commented out
+# serve to show the default.
+
+import sys, os
+
+# If extensions (or modules to document with autodoc) are in another directory,
+# add these directories to sys.path here. If the directory is relative to the
+# documentation root, use os.path.abspath to make it absolute, like shown here.
+#sys.path.insert(0, os.path.abspath('.'))
+
+# -- General configuration -----------------------------------------------------
+
+# If your documentation needs a minimal Sphinx version, state it here.
+#needs_sphinx = '1.0'
+
+# Add any Sphinx extension module names here, as strings. They can be extensions
+# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
+extensions = ['sphinx.ext.autodoc']
+
+# Add any paths that contain templates here, relative to this directory.
+templates_path = ['_templates']
+
+# The suffix of source filenames.
+source_suffix = '.rst'
+
+# The encoding of source files.
+#source_encoding = 'utf-8-sig'
+
+# The master toctree document.
+master_doc = 'tox-man'
+
+# General information about the project.
+project = u'tox'
+copyright = u'Manual page (C) 2012, Barry Warsaw'
+
+# The version info for the project you're documenting, acts as replacement for
+# |version| and |release|, also used in various other places throughout the
+# built documents.
+#
+# The short X.Y version.
+version = '1.4.2'
+# The full version, including alpha/beta/rc tags.
+release = '1.4.2'
+
+# The language for content autogenerated by Sphinx. Refer to documentation
+# for a list of supported languages.
+#language = None
+
+# There are two options for replacing |today|: either, you set today to some
+# non-false value, then it is used:
+#today = ''
+# Else, today_fmt is used as the format for a strftime call.
+#today_fmt = '%B %d, %Y'
+
+# List of patterns, relative to source directory, that match files and
+# directories to ignore when looking for source files.
+exclude_patterns = ['_build']
+
+# The reST default role (used for this markup: `text`) to use for all documents.
+#default_role = None
+
+# If true, '()' will be appended to :func: etc. cross-reference text.
+#add_function_parentheses = True
+
+# If true, the current module name will be prepended to all description
+# unit titles (such as .. function::).
+#add_module_names = True
+
+# If true, sectionauthor and moduleauthor directives will be shown in the
+# output. They are ignored by default.
+#show_authors = False
+
+# The name of the Pygments (syntax highlighting) style to use.
+pygments_style = 'sphinx'
+
+# A list of ignored prefixes for module index sorting.
+#modindex_common_prefix = []
+
+
+# -- Options for HTML output ---------------------------------------------------
+
+# The theme to use for HTML and HTML Help pages.  See the documentation for
+# a list of builtin themes.
+html_theme = 'default'
+
+# Theme options are theme-specific and customize the look and feel of a theme
+# further.  For a list of options available for each theme, see the
+# documentation.
+#html_theme_options = {}
+
+# Add any paths that contain custom themes here, relative to this directory.
+#html_theme_path = []
+
+# The name for this set of Sphinx documents.  If None, it defaults to
+# "<project> v<release> documentation".
+#html_title = None
+
+# A shorter title for the navigation bar.  Default is the same as html_title.
+#html_short_title = None
+
+# The name of an image file (relative to this directory) to place at the top
+# of the sidebar.
+#html_logo = None
+
+# The name of an image file (within the static path) to use as favicon of the
+# docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
+# pixels large.
+#html_favicon = None
+
+# Add any paths that contain custom static files (such as style sheets) here,
+# relative to this directory. They are copied after the builtin static files,
+# so a file named "default.css" will overwrite the builtin "default.css".
+html_static_path = ['_static']
+
+# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
+# using the given strftime format.
+#html_last_updated_fmt = '%b %d, %Y'
+
+# If true, SmartyPants will be used to convert quotes and dashes to
+# typographically correct entities.
+#html_use_smartypants = True
+
+# Custom sidebar templates, maps document names to template names.
+#html_sidebars = {}
+
+# Additional templates that should be rendered to pages, maps page names to
+# template names.
+#html_additional_pages = {}
+
+# If false, no module index is generated.
+#html_domain_indices = True
+
+# If false, no index is generated.
+#html_use_index = True
+
+# If true, the index is split into individual pages for each letter.
+#html_split_index = False
+
+# If true, links to the reST sources are added to the pages.
+#html_show_sourcelink = True
+
+# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
+#html_show_sphinx = True
+
+# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
+#html_show_copyright = True
+
+# If true, an OpenSearch description file will be output, and all pages will
+# contain a <link> tag referring to it.  The value of this option must be the
+# base URL from which the finished HTML is served.
+#html_use_opensearch = ''
+
+# This is the file name suffix for HTML files (e.g. ".xhtml").
+#html_file_suffix = None
+
+# Output file base name for HTML help builder.
+htmlhelp_basename = 'toxdoc'
+
+
+# -- Options for LaTeX output --------------------------------------------------
+
+latex_elements = {
+# The paper size ('letterpaper' or 'a4paper').
+#'papersize': 'letterpaper',
+
+# The font size ('10pt', '11pt' or '12pt').
+#'pointsize': '10pt',
+
+# Additional stuff for the LaTeX preamble.
+#'preamble': '',
+}
+
+# Grouping the document tree into LaTeX files. List of tuples
+# (source start file, target name, title, author, documentclass [howto/manual]).
+latex_documents = [
+  ('tox-man', 'tox.tex', u'tox Documentation',
+   u'Holger Krekel <holger at merlinux.eu>', 'manual'),
+]
+
+# The name of an image file (relative to this directory) to place at the top of
+# the title page.
+#latex_logo = None
+
+# For "manual" documents, if this is true, then toplevel headings are parts,
+# not chapters.
+#latex_use_parts = False
+
+# If true, show page references after internal links.
+#latex_show_pagerefs = False
+
+# If true, show URL addresses after external links.
+#latex_show_urls = False
+
+# Documents to append as an appendix to all manuals.
+#latex_appendices = []
+
+# If false, no module index is generated.
+#latex_domain_indices = True
+
+
+# -- Options for manual page output --------------------------------------------
+
+# One entry per manual page. List of tuples
+# (source start file, name, description, authors, manual section).
+man_pages = [
+    ('tox-man', 'tox', u'A generic virtualenv management and test tool.',
+     [u'Holger Krekel <holger at merlinux.eu>',
+      u'Barry Warsaw <barry at debian.org>'], 1)
+]
+
+# If true, show URL addresses after external links.
+#man_show_urls = False
+
+
+# -- Options for Texinfo output ------------------------------------------------
+
+# Grouping the document tree into Texinfo files. List of tuples
+# (source start file, target name, title, author,
+#  dir menu entry, description, category)
+texinfo_documents = [
+  ('tox-man', 'tox', u'tox(1)',
+   u'Barry Warsaw', 'tox', 'A generic virtualenv management and test tool.',
+   'Miscellaneous'),
+]
+
+# Documents to append as an appendix to all manuals.
+#texinfo_appendices = []
+
+# If false, no module index is generated.
+#texinfo_domain_indices = True
+
+# How to display URL addresses: 'footnote', 'no', or 'inline'.
+#texinfo_show_urls = 'footnote'
diff --git a/debian/manpage/tox-man.rst b/debian/manpage/tox-man.rst
new file mode 100644
index 0000000..4fc8fe3
--- /dev/null
+++ b/debian/manpage/tox-man.rst
@@ -0,0 +1,43 @@
+:orphan:
+
+tox manual page
+===============
+
+Synopsis
+--------
+
+**tox** [*options*]  [*args*]
+
+
+Description
+-----------
+
+:program:`tox` is a generic `virtualenv`_ management and test command line
+tool you can use for:
+
+ * checking that your package installs correctly with different Python
+   versions and interpreters
+ * running your tests in each of the environments, configuring your test tool
+   of choice
+ * acting as a front-end to Continuous Integration servers, greatly reducing
+   boilerplate and merging CI and shell-based testing
+
+
+Options
+-------
+
+-h, --help      Show the help message and exit.
+--version       Report version information to stdout.
+-v              Increase the verbosity of reporting output.
+--showconfig    Show configuration information.
+-c <path>       Use the specified path as the configuration file.
+-e <envlist>    Work against specified environments.  ``ALL`` selects all
+                available environments.
+--notest        Skip invoking test commands.
+--sdistonly     Only perform the sdist packaging activity.
+-i <url>        Set indexserver url (if ``url`` is of form ``name=url`` set
+                the url for the ``name`` indexserver, specifically)
+-r, --recreate  Force recreation of virtual environments.
+
+
+.. _`virtualenv`: http://pypi.python.org/pypi/virtualenv
diff --git a/debian/patches/build-time-tests.patch b/debian/patches/build-time-tests.patch
new file mode 100644
index 0000000..7f52c0e
--- /dev/null
+++ b/debian/patches/build-time-tests.patch
@@ -0,0 +1,227 @@
+Description: Various fixes to get some semblance of the test suite passing at
+ package build time.  This isn't perfect because tox's tests depend on tox
+ being built and installed - a catch 22.  However, we can do a lot and there
+ are DEP-8 tests to handle the rest of it.
+Author: Barry Warsaw <barry at debian.org>
+Forwarded: not-needed
+
+--- a/tox.ini
++++ b/tox.ini
+@@ -5,7 +5,7 @@
+ commands=echo {posargs}
+ 
+ [testenv]
+-commands=py.test  --junitxml={envlogdir}/junit-{envname}.xml {posargs}
++commands=py.test-3  --junitxml={envlogdir}/junit-{envname}.xml {posargs}
+ deps=pytest>=2.3.5
+ 
+ [testenv:docs]
+--- a/tests/test_config.py
++++ b/tests/test_config.py
+@@ -1101,6 +1101,7 @@
+         config = newconfig([], inisource)
+         assert config.envconfigs['hello'].recreate
+ 
++ at pytest.mark.skipif(os.environ.get('DEB_SKIP_TOX_TESTS'))
+ class TestCmdInvocation:
+     def test_help(self, cmd):
+         result = cmd.run("tox", "-h")
+--- a/tests/test_z_cmdline.py
++++ b/tests/test_z_cmdline.py
+@@ -1,3 +1,4 @@
++import os
+ import tox
+ import py
+ import pytest
+@@ -179,6 +180,7 @@
+         "*created sdist package at*",
+     ])
+ 
++ at pytest.mark.skipif(os.environ.get('DEB_SKIP_TOX_TESTS'))
+ def test_minversion(cmd, initproj):
+     initproj("interp123-0.5", filedefs={
+         'tests': {'test_hello.py': "def test_hello(): pass"},
+@@ -193,6 +195,7 @@
+     ])
+     assert result.ret
+ 
++ at pytest.mark.skipif(os.environ.get('DEB_SKIP_TOX_TESTS'))
+ def test_unknown_interpreter_and_env(cmd, initproj):
+     initproj("interp123-0.5", filedefs={
+         'tests': {'test_hello.py': "def test_hello(): pass"},
+@@ -215,6 +218,7 @@
+         "*ERROR*unknown*",
+     ])
+ 
++ at pytest.mark.skipif(os.environ.get('DEB_SKIP_TOX_TESTS'))
+ def test_unknown_interpreter(cmd, initproj):
+     initproj("interp123-0.5", filedefs={
+         'tests': {'test_hello.py': "def test_hello(): pass"},
+@@ -231,6 +235,7 @@
+         "*ERROR*InterpreterNotFound*xyz_unknown_interpreter*",
+     ])
+ 
++ at pytest.mark.skipif(os.environ.get('DEB_SKIP_TOX_TESTS'))
+ def test_unknown_dep(cmd, initproj):
+     initproj("dep123-0.7", filedefs={
+         'tests': {'test_hello.py': "def test_hello(): pass"},
+@@ -246,6 +251,7 @@
+         "*ERROR*could not install*qweqwe123*",
+     ])
+ 
++ at pytest.mark.skipif(os.environ.get('DEB_SKIP_TOX_TESTS'))
+ def test_unknown_environment(cmd, initproj):
+     initproj("env123-0.7", filedefs={
+         'tox.ini': ''
+@@ -256,6 +262,7 @@
+         "*ERROR*unknown*environment*qpwoei*",
+     ])
+ 
++ at pytest.mark.skipif(os.environ.get('DEB_SKIP_TOX_TESTS'))
+ def test_skip_sdist(cmd, initproj):
+     initproj("pkg123-0.7", filedefs={
+         'tests': {'test_hello.py': "def test_hello(): pass"},
+@@ -273,6 +280,7 @@
+     result = cmd.run("tox", )
+     assert result.ret == 0
+ 
++ at pytest.mark.skipif(os.environ.get('DEB_SKIP_TOX_TESTS'))
+ def test_minimal_setup_py_empty(cmd, initproj):
+     initproj("pkg123-0.7", filedefs={
+         'tests': {'test_hello.py': "def test_hello(): pass"},
+@@ -288,6 +296,7 @@
+         "*ERROR*empty*",
+     ])
+ 
++ at pytest.mark.skipif(os.environ.get('DEB_SKIP_TOX_TESTS'))
+ def test_minimal_setup_py_comment_only(cmd, initproj):
+     initproj("pkg123-0.7", filedefs={
+         'tests': {'test_hello.py': "def test_hello(): pass"},
+@@ -304,6 +313,7 @@
+         "*ERROR*empty*",
+     ])
+ 
++ at pytest.mark.skipif(os.environ.get('DEB_SKIP_TOX_TESTS'))
+ def test_minimal_setup_py_non_functional(cmd, initproj):
+     initproj("pkg123-0.7", filedefs={
+         'tests': {'test_hello.py': "def test_hello(): pass"},
+@@ -321,6 +331,7 @@
+         "*ERROR*check setup.py*",
+     ])
+ 
++ at pytest.mark.skipif(os.environ.get('DEB_SKIP_TOX_TESTS'))
+ def test_sdist_fails(cmd, initproj):
+     initproj("pkg123-0.7", filedefs={
+         'tests': {'test_hello.py': "def test_hello(): pass"},
+@@ -336,6 +347,7 @@
+         "*FAIL*could not package project*",
+     ])
+ 
++ at pytest.mark.skipif(os.environ.get('DEB_SKIP_TOX_TESTS'))
+ def test_package_install_fails(cmd, initproj):
+     initproj("pkg123-0.7", filedefs={
+         'tests': {'test_hello.py': "def test_hello(): pass"},
+@@ -362,6 +374,7 @@
+ 
+ 
+ 
++ at pytest.mark.skipif(os.environ.get('DEB_SKIP_TOX_TESTS'))
+ class TestToxRun:
+     @pytest.fixture
+     def example123(self, initproj):
+@@ -423,6 +436,7 @@
+         ])
+ 
+ 
++ at pytest.mark.skipif(os.environ.get('DEB_SKIP_TOX_TESTS'))
+ def test_develop(initproj, cmd):
+     initproj("example123", filedefs={'tox.ini': """
+     """})
+@@ -430,6 +444,7 @@
+     assert not result.ret
+     assert "sdist-make" not in result.stdout.str()
+ 
++ at pytest.mark.skipif(os.environ.get('DEB_SKIP_TOX_TESTS'))
+ def test_usedevelop(initproj, cmd):
+     initproj("example123", filedefs={'tox.ini': """
+             [testenv]
+@@ -439,6 +454,7 @@
+     assert not result.ret
+     assert "sdist-make" not in result.stdout.str()
+ 
++ at pytest.mark.skipif(os.environ.get('DEB_SKIP_TOX_TESTS'))
+ def test_usedevelop_mixed(initproj, cmd):
+     initproj("example123", filedefs={'tox.ini': """
+             [testenv:devenv]
+@@ -457,6 +473,7 @@
+     assert not result.ret
+     assert "sdist-make" in result.stdout.str()
+ 
++ at pytest.mark.skipif(os.environ.get('DEB_SKIP_TOX_TESTS'))
+ def test_test_usedevelop(cmd, initproj):
+     initproj("example123-0.5", filedefs={
+         'tests': {'test_hello.py': """
+@@ -510,6 +527,7 @@
+     ])
+ 
+ 
++ at pytest.mark.skipif(os.environ.get('DEB_SKIP_TOX_TESTS'))
+ def test_test_piphelp(initproj, cmd):
+     initproj("example123", filedefs={'tox.ini': """
+         # content of: tox.ini
+@@ -523,6 +541,7 @@
+     result = cmd.run("tox")
+     assert not result.ret
+ 
++ at pytest.mark.skipif(os.environ.get('DEB_SKIP_TOX_TESTS'))
+ def test_notest(initproj, cmd):
+     initproj("example123", filedefs={'tox.ini': """
+         # content of: tox.ini
+@@ -541,6 +560,7 @@
+         "*py26*reusing*",
+     ])
+ 
++ at pytest.mark.skipif(os.environ.get('DEB_SKIP_TOX_TESTS'))
+ def test_PYC(initproj, cmd, monkeypatch):
+     initproj("example123", filedefs={'tox.ini': ''})
+     monkeypatch.setenv("PYTHONDOWNWRITEBYTECODE", 1)
+@@ -550,6 +570,7 @@
+         "*create*",
+     ])
+ 
++ at pytest.mark.skipif(os.environ.get('DEB_SKIP_TOX_TESTS'))
+ def test_env_VIRTUALENV_PYTHON(initproj, cmd, monkeypatch):
+     initproj("example123", filedefs={'tox.ini': ''})
+     monkeypatch.setenv("VIRTUALENV_PYTHON", '/FOO')
+@@ -559,6 +580,7 @@
+         "*create*",
+     ])
+ 
++ at pytest.mark.skipif(os.environ.get('DEB_SKIP_TOX_TESTS'))
+ def test_sdistonly(initproj, cmd):
+     initproj("example123", filedefs={'tox.ini': """
+     """})
+@@ -569,6 +591,7 @@
+     ])
+     assert "virtualenv" not in result.stdout.str()
+ 
++ at pytest.mark.skipif(os.environ.get('DEB_SKIP_TOX_TESTS'))
+ def test_separate_sdist_no_sdistfile(cmd, initproj):
+     distshare = cmd.tmpdir.join("distshare")
+     initproj("pkg123-0.7", filedefs={
+@@ -583,6 +606,7 @@
+     assert len(l) == 1
+     sdistfile = l[0]
+ 
++ at pytest.mark.skipif(os.environ.get('DEB_SKIP_TOX_TESTS'))
+ def test_separate_sdist(cmd, initproj):
+     distshare = cmd.tmpdir.join("distshare")
+     initproj("pkg123-0.7", filedefs={
+@@ -625,6 +649,7 @@
+     sdist_path = session.sdist()
+     assert sdist_path == p
+ 
++ at pytest.mark.skipif(os.environ.get('DEB_SKIP_TOX_TESTS'))
+ @pytest.mark.xfail("sys.platform == 'win32' and sys.version_info < (2,6)",
+                    reason="test needs better impl")
+ def test_envsitepackagesdir(cmd, initproj):
diff --git a/debian/patches/de-google-ify.patch b/debian/patches/de-google-ify.patch
new file mode 100644
index 0000000..0ea227f
--- /dev/null
+++ b/debian/patches/de-google-ify.patch
@@ -0,0 +1,16 @@
+--- a/doc/_templates/layout.html
++++ b/doc/_templates/layout.html
+@@ -3,13 +3,4 @@
+ 
+ {% block footer %}
+ {{ super() }}
+-<script type="text/javascript">
+-var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
+-document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
+-</script>
+-<script type="text/javascript">
+-try {
+-var pageTracker = _gat._getTracker("UA-17241637-3");
+-pageTracker._trackPageview();
+-} catch(err) {}</script>
+ {% endblock %}
diff --git a/debian/patches/hack-requires.patch b/debian/patches/hack-requires.patch
new file mode 100644
index 0000000..e50aa9e
--- /dev/null
+++ b/debian/patches/hack-requires.patch
@@ -0,0 +1,35 @@
+Description: Remove the virtualenv versioned requirements.
+ We'll ensure that the proper dependencies are available via Depends, but
+ the requires.txt line tries to do an import to verify the requirement, and
+ we don't build the Python 3 version of virtualenv yet.
+Author: Barry Warsaw <barry at debian.org>
+Forwarded: not-needed
+
+--- a/tox.egg-info/requires.txt
++++ b/tox.egg-info/requires.txt
+@@ -1,2 +1 @@
+-virtualenv>=1.11.2
+ py>=1.4.17
+\ No newline at end of file
+--- a/setup.py
++++ b/setup.py
+@@ -18,11 +18,6 @@
+ 
+ def main():
+     version = sys.version_info[:2]
+-    install_requires = ['virtualenv>=1.11.2', 'py>=1.4.17', ]
+-    if version < (2, 7) or (3, 0) <= version <= (3, 1):
+-        install_requires += ['argparse']
+-    if version < (2,6):
+-        install_requires += ["simplejson"]
+     setup(
+         name='tox',
+         description='virtualenv-based automation of test activities',
+@@ -39,7 +34,6 @@
+         # "deps" definition for the required dependencies
+         tests_require=['tox'],
+         cmdclass={"test": Tox},
+-        install_requires=install_requires,
+         classifiers=[
+             'Development Status :: 5 - Production/Stable',
+             'Intended Audience :: Developers',
diff --git a/debian/patches/intersphinx_mapping.patch b/debian/patches/intersphinx_mapping.patch
new file mode 100644
index 0000000..7021fe0
--- /dev/null
+++ b/debian/patches/intersphinx_mapping.patch
@@ -0,0 +1,37 @@
+Description: Use local object inventory files for sphinx
+ Use the local object inventory files to prevent sphinx-build from 
+ downloading them during build.
+ This patch makes the intersphinx mappings depend on the existence of 
+ these files, thus passing Debian Policy 12.3 while still maintaining 
+ a level of comfort for the reader of the documentation.
+Author: Fladischer Michael <FladischerMichael at fladi.at>
+Forwarded: not-needed
+Last-Update: 2011-03-03
+
+--- a/doc/conf.py
++++ b/doc/conf.py
+@@ -253,7 +253,23 @@
+ 
+ 
+ # Example configuration for intersphinx: refer to the Python standard library.
+-intersphinx_mapping = {'http://docs.python.org/': None}
++def check_object_path(key, url, path):
++    if os.path.isfile(path):
++        return {key: (url, path)}
++    return {}
++
++intersphinx_mapping = {}
++intersphinx_mapping.update(
++    check_object_path('python',
++                      'http://docs.python.org/',
++                      '/usr/share/doc/python'
++                      + '.'.join([str(x) for x in sys.version_info[0:2]])
++                      + '/html/objects.inv'))
++intersphinx_mapping.update(
++    check_object_path('sphinx',
++                      'http://sphinx.pocoo.org/',
++                      '/usr/share/doc/python-sphinx/html/objects.inv'))
++
+ 
+ def setup(app):
+     #from sphinx.ext.autodoc import cut_lines
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..79440b4
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,4 @@
+intersphinx_mapping.patch
+hack-requires.patch
+build-time-tests.patch
+de-google-ify.patch
diff --git a/debian/python-tox.doc-base b/debian/python-tox.doc-base
new file mode 100644
index 0000000..7011027
--- /dev/null
+++ b/debian/python-tox.doc-base
@@ -0,0 +1,14 @@
+Document: python-tox
+Title: tox readme, issues, and workarounds
+Author: Holger Krekel
+Abstract: This manual briefly describes what tox is, and presents some issues
+ you might encounter while using tox, along with some workarounds for how to
+ deal with these issues.
+Section: Programming/Python
+
+Format: Text
+Files: /usr/share/doc/python-tox/*.txt
+
+Format: HTML
+Index: /usr/share/doc/python-tox/html/index.html
+Files: /usr/share/doc/python-tox/html/*
diff --git a/debian/python-tox.docs b/debian/python-tox.docs
new file mode 100644
index 0000000..b4ee79f
--- /dev/null
+++ b/debian/python-tox.docs
@@ -0,0 +1,3 @@
+ISSUES.txt
+README.rst
+doc/*.txt
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..9cc22dc
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,49 @@
+#!/usr/bin/make -f
+
+#export DH_VERBOSE=1
+PYTHON3=$(shell py3versions -sv)
+
+# Prevent setuptools/distribute from accessing the internet.
+export http_proxy = http://127.0.9.1:9
+export https_proxy = https://127.0.9.1:9
+
+
+%:
+	dh $@ --with=python3,sphinxdoc --buildsystem=pybuild
+
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+test-python%:
+	nodot=$(shell echo $* | cut --complement -b 2); \
+	PYTHONPATH=`pwd`:$$PYTHONPATH DEB_SKIP_TOX_TESTS=1 \
+	python$* -mtox --sitepackages -e py$${nodot}
+
+override_dh_auto_test: $(PYTHON3:%=test-python%)
+endif
+
+# pybuild can't yet handle Python 3 packages that don't start with "python3-".
+# See bug #751908 - In the meantime, this override isn't perfect, but it gets
+# close enough.
+override_dh_auto_install:
+	dh_auto_install
+	mv debian/python-tox/usr/lib/python3.? \
+	   debian/python-tox/usr/lib/python3
+	find debian/python-tox -name __pycache__ | xargs rm -rf
+
+override_dh_installdocs:
+	python3 setup.py build_sphinx
+	dh_installdocs build/sphinx/html
+
+override_dh_installman:
+	(cd debian/manpage; \
+	 sphinx-build -b man -d _build/doctrees . _build/man)
+	dh_installman debian/manpage/_build/man/tox.1
+
+override_dh_installchangelogs:
+	dh_installchangelogs CHANGELOG
+
+override_dh_auto_clean:
+	dh_auto_clean
+	rm -rf build
+	rm -rf *.egg-info
+	rm -rf .tox
+	rm -rf debian/manpage/_build
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/tests/built b/debian/tests/built
new file mode 100644
index 0000000..cae1719
--- /dev/null
+++ b/debian/tests/built
@@ -0,0 +1,5 @@
+#!/bin/sh
+export http_proxy=http://127.0.9.1:9
+export https_proxy=https://127.0.9.1:9
+export toxenv=`python3 -c "import sys; print('py{}{}'.format(*sys.version_info[:2]))"`
+tox -e $toxenv --sitepackages
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..80fe4f6
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: built
+Depends: @, python3-all, python3-pytest, python-virtualenv, python3-pip
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..dd7cf9d
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://pypi.python.org/packages/source/t/tox/tox-(.*).tar.gz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/tox.git



More information about the Python-modules-commits mailing list