debian/0000755000000000000000000000000012254667445007205 5ustar debian/source/0000755000000000000000000000000012254667214010477 5ustar debian/source/format0000644000000000000000000000001411732423233011674 0ustar 3.0 (quilt) debian/python-pytest-doc.docs0000644000000000000000000000002412114162471013445 0ustar doc/en/_build/html/ debian/rules0000755000000000000000000000404612123025613010245 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 PYVERS := $(shell pyversions -vr) PY3VERS := $(shell py3versions -vr) UPSTREAM = $(shell dpkg-parsechangelog | egrep "^Version: "| sed 's/Version: \(.*\)-.*/\1/' ) %: dh $@ --with python2,python3,sphinxdoc override_dh_auto_build: # Build for all versions. set -ex; \ for py in $(PYVERS) $(PY3VERS); do \ python$$py setup.py build; \ done PYTHONPATH=`pwd` make -C doc/en man cp doc/en/_build/man/pytest.1 debian/py.test.1 cp debian/py.test.1 debian/py.test-3.1 sed -i 's/PYTEST/PY.TEST/g' debian/py.test.1 sed -i 's/PYTEST/PY.TEST-3/g' debian/py.test-3.1 sed -i 's/py\.test/py.test-3/g' debian/py.test-3.1 PYTHONPATH=`pwd` make -C doc/en/ html override_dh_compress: dh_compress -X.html override_dh_install: # Only install for the default versions. python setup.py install --skip-build --no-compile \ --root debian/python-pytest \ --install-layout=deb rm debian/python-pytest/usr/bin/* install -m 755 debian/py.test.template debian/python-pytest/usr/bin/py.test sed -i 's/#UPSTREAMVERSION#/$(UPSTREAM)/' debian/python-pytest/usr/bin/py.test sed -i 's,#PYSHEBANG#,#!/usr/bin/python,' debian/python-pytest/usr/bin/py.test python3 setup.py install --skip-build --no-compile \ --root debian/python3-pytest \ --install-layout=deb rm debian/python3-pytest/usr/bin/* install -m 755 debian/py.test.template debian/python3-pytest/usr/bin/py.test-3 sed -i 's/#UPSTREAMVERSION#/$(UPSTREAM)/' debian/python3-pytest/usr/bin/py.test-3 sed -i 's,#PYSHEBANG#,#!/usr/bin/python3,' debian/python3-pytest/usr/bin/py.test-3 dh_install override_dh_auto_clean: rm -rf doc/en/_build build pytest.egg-info find . \( -name '*.py[oc]' -o -name __pycache__ \) -delete dh_auto_clean override_dh_clean: rm debian/py.test.1 debian/py.test-3.1 -f dh_clean override_dh_auto_test: ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) set -ex; \ for py in $(PYVERS) $(PY3VERS); do \ PYTHONPATH=$(CURDIR) python$$py -m pytest testing ; \ done endif debian/python-pytest.manpages0000644000000000000000000000002111732423233013543 0ustar debian/py.test.1 debian/python-pytest.install0000644000000000000000000000006511770724531013435 0ustar debian/python-pytest.rt* /usr/share/python/runtime.d debian/python3-pytest.install0000644000000000000000000000006711770724531013522 0ustar debian/python3-pytest.rt* /usr/share/python3/runtime.d debian/python-pytest.rtremove0000755000000000000000000000007011771057735013637 0ustar #!/bin/sh set -e rm -f "/usr/bin/py.test-${2##*python}" debian/py.test.template0000644000000000000000000000023311770724531012336 0ustar #PYSHEBANG# import sys from pkg_resources import load_entry_point sys.exit(load_entry_point('pytest==#UPSTREAMVERSION#', 'console_scripts', 'py.test')()) debian/python3-pytest.docs0000644000000000000000000000001312142260467012770 0ustar README.rst debian/changelog0000644000000000000000000000700412254667170011053 0ustar pytest (2.5.1-1) unstable; urgency=low * Team upload. * New upstream release. * d/control: Update python-py and python3-py dependency versions. Closes: #731299 * d/patches/remove_google_js: Refreshed. -- Barry Warsaw Thu, 12 Dec 2013 10:27:41 -0500 pytest (2.4.2-1) unstable; urgency=low [ Martin Pitt ] * debian/tests/control: Drop trailing comma from test dependencies, which causes autopkgtest to fail. [ Simon Chopin ] * New upstream release (Closes: #728526) + Drop the reset-tmpdir-mode patch as the issue has been adressed upstream * Bump the policy version to 3.9.5 (no changes needed) * Bump copyright years and remove the paragraph for distribute_setup.py -- Simon Chopin Sun, 24 Nov 2013 22:47:17 +0100 pytest (2.3.5-1) unstable; urgency=low [ Jakub Wilk ] * Use canonical URIs for Vcs-* fields. [ Simon Chopin ] * New upstream version (Closes: #707151) * B-D on debhelper 8.1 to conform to Policy 3.9.4 * Add DEP-8 tests (Closes: #702121) * Patch the tests to restore the permissions of the tmpdir used in tests [ Sebastian Ramacher ] * Upload to unstable. -- Simon Chopin Mon, 20 May 2013 20:31:42 +0200 pytest (2.3.4-1~exp2) experimental; urgency=low * Fix the version detection regexp to be less inclusive (Closes: #703351) * Adjust the shebang replacement regexp in postinst and rtinstall. Thanks to Roderich Schupp. * Remove the doc build directory in the clean target (Closes: #702117) -- Simon Chopin Fri, 22 Mar 2013 14:24:48 +0100 pytest (2.3.4-1~exp1) experimental; urgency=low * Upload new upstream release to experimental (Closes: #699312) + Update the patch paths to build only the English documentation * Fix the permissions for the py.test-3 executable. * Up the dependency on python-py to 1.4.11 * Add python(3)-nose, python-pexpect, python(3)-mock (>= 1.0.1) and python-twisted-core as Build-Depends to skip less tests. * Suggests python-mock (>= 1.0.1) in python-pytest * Bump Standards-Version to 3.9.4, no change needed. * Update copyright year. -- Simon Chopin Sat, 02 Mar 2013 17:13:20 +0100 pytest (2.2.4-2) unstable; urgency=low * Use rt{install, remove} mechanisms from the Python package to replace the wrapper system. /usr/bin/py.test-X.Y will now be available only if the corresponding python package is installed. Thanks to Jakub Wilk. -- Simon Chopin Sun, 24 Jun 2012 21:53:21 +0200 pytest (2.2.4-1) unstable; urgency=low * New upstream release * Drop patch fix-grammar-manpage (included upstream) * Bump the dependency to python[3]-py to >= 1.4.8 -- Simon Chopin Sun, 03 Jun 2012 03:04:02 +0200 pytest (2.2.3-3) unstable; urgency=low * Fix the version detection in the wrapper (Closes: #668691) -- Simon Chopin Tue, 17 Apr 2012 12:56:18 +0200 pytest (2.2.3-2) unstable; urgency=low * Fix the shell wrapper (Closes: #668519) * Use the wrapper for py.test and py3-test to simplify d/rules * Enable test suite + Uncomment the override_dh_auto_test target * Build-Conflicts on old versions of python-pytest-xdist (<< 1.5) -- Simon Chopin Fri, 13 Apr 2012 20:34:00 +0200 pytest (2.2.3-1) unstable; urgency=low * Initial release (Closes: #664071) * Disable the test suite for the bootstrap. -- Simon Chopin Wed, 11 Apr 2012 15:09:52 +0200 debian/tests/0000755000000000000000000000000012254667214010341 5ustar debian/tests/unittests-python20000755000000000000000000000020112143427546013722 0ustar #!/bin/sh cp -r testing "$ADTTMP" cd "$ADTTMP" for py in $(pyversions -s); do TMPDIR="$ADTTMP" $py -m pytest testing done debian/tests/control0000644000000000000000000000036312170716024011735 0ustar Tests: unittests-python2 Depends: @, python-all, python-mock (>= 1.0.1), python-nose, python-pexpect, python-pytest-xdist, python-twisted-core Tests: unittests-python3 Depends: @, python3-all, python3-mock (>= 1.0.1), python3-nose debian/tests/unittests-python30000755000000000000000000000020212143427546013724 0ustar #!/bin/sh cp -r testing "$ADTTMP" cd "$ADTTMP" for py in $(py3versions -s); do TMPDIR="$ADTTMP" $py -m pytest testing done debian/python3-pytest.manpages0000644000000000000000000000002311737477440013646 0ustar debian/py.test-3.1 debian/copyright0000644000000000000000000000531612244467742011142 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: pytest Source: http://pytest.org/ Files: * Copyright: 2007-2013 Holger Kregel 2007-2013 Merlinux GmbH License: Expat Files: debian/* Copyright: 2012-2013 Simon Chopin License: Expat License: Expat 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. Files: doc/_static/sphinxdoc.css Copyright: 2007-2010 the Sphinx Team License: BSD-2-clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/control0000644000000000000000000000422212252414625010574 0ustar Source: pytest Section: python Priority: optional Maintainer: Debian Python Modules Team Uploaders: Simon Chopin Build-Depends: debhelper (>= 8.1), python-all (>= 2.6.6-3~), python-py (>= 1.4.19), python-twisted-core, python-pexpect, python-nose, python-mock (>= 1.0.1), python-setuptools, python-sphinx (>= 1.0.7+dfsg), python3-all (>= 3.1.2-6~), python3-py (>= 1.4.19), python3-nose, python3-mock (>= 1.0.1), python3-setuptools Build-Conflicts: python-pytest-xdist (<< 1.5) X-Python-Version: >= 2.4 X-Python3-Version: >= 3.0 Standards-Version: 3.9.5 Homepage: http://pytest.org/ Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/pytest/trunk/ Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/pytest/trunk/ XS-Testsuite: autopkgtest Package: python-pytest Architecture: all Depends: python-pkg-resources, python-py (>= 1.4.19), ${misc:Depends}, ${python:Depends} Suggests: python-mock (>= 1.0.1) Breaks: python-py (<< 1.4) Replaces: python-py (<< 1.4) Description: Simple, powerful testing in Python This testing tool has for objective to allow the developers to limit the boilerplate code around the tests, promoting the use of built-in mechanisms such as the `assert` keyword. Package: python3-pytest Architecture: all Depends: python3-pkg-resources, python3-py (>= 1.4.19), ${misc:Depends}, ${python3:Depends} Description: Simple, powerful testing in Python3 This testing tool has for objective to allow the developers to limit the boilerplate code around the tests, promoting the use of built-in mechanisms such as the `assert` keyword. . This package provides the Python 3 module and the py3.test script. Package: python-pytest-doc Section: doc Architecture: all Depends: ${misc:Depends}, ${sphinxdoc:Depends} Recommends: python-pytest | python3-pytest Description: Simple, powerful testing in Python - Documentation This testing tool has for objective to allow the developers to limit the boilerplate code around the tests, promoting the use of built-in mechanisms such as the `assert` keyword. . This package contains the documentation for pytest. debian/python3-pytest.prerm0000644000000000000000000000136511771057735013211 0ustar #!/bin/sh set -e # summary of how this script can be called: # * `remove' # * `upgrade' # * `failed-upgrade' # * `remove' `in-favour' # * `deconfigure' `in-favour' # `removing' # case "$1" in remove|upgrade|deconfigure|failed-upgrade) rm -f /usr/bin/py.test-3.[0-9] ;; *) echo "prerm called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/python-pytest.postinst0000644000000000000000000000220512122434460013637 0ustar #!/bin/sh set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-remove' # * `abort-deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in configure|abort-upgrade|abort-remove|abort-deconfigure) for version in `pyversions -vi`; do if [ $version ]; then cp /usr/bin/py.test /usr/bin/py.test-$version sed -i "s,#! */usr/bin/python,#!/usr/bin/python$version," "/usr/bin/py.test-$version" fi done ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/python-pytest.prerm0000644000000000000000000000136511771057735013126 0ustar #!/bin/sh set -e # summary of how this script can be called: # * `remove' # * `upgrade' # * `failed-upgrade' # * `remove' `in-favour' # * `deconfigure' `in-favour' # `removing' # case "$1" in remove|upgrade|deconfigure|failed-upgrade) rm -f /usr/bin/py.test-2.[0-9] ;; *) echo "prerm called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/patches/0000755000000000000000000000000012254667214010626 5ustar debian/patches/series0000644000000000000000000000002112252410521012015 0ustar remove_google_js debian/patches/remove_google_js0000644000000000000000000000242312254666323014077 0ustar Description: Remove Google Analytics and Google+ javascript. It is not relevant for an offline and private installation. Author: Simon Chopin Forwarded: not-needed Last-Update: 2012-04-09 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/doc/en/_templates/layout.html +++ b/doc/en/_templates/layout.html @@ -2,18 +2,4 @@ {% block footer %} {{ super() }} - - {% endblock %} --- a/doc/en/_templates/links.html +++ b/doc/en/_templates/links.html @@ -7,5 +7,3 @@
  • Issue Tracker
  • PDF Documentation - - debian/python-pytest-doc.links0000644000000000000000000000012211741156063013641 0ustar usr/share/doc/python-pytest-doc/html/_sources usr/share/doc/python-pytest-doc/rst debian/python3-pytest.rtremove0000755000000000000000000000007011771057735013722 0ustar #!/bin/sh set -e rm -f "/usr/bin/py.test-${2##*python}" debian/watch0000644000000000000000000000016312150456117010221 0ustar version=3 https://pypi.python.org/packages/source/p/pytest/pytest-(.+).(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) debian/python3-pytest.postinst0000644000000000000000000000226612122434460013731 0ustar #!/bin/sh set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-remove' # * `abort-deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in configure|abort-upgrade|abort-remove|abort-deconfigure) # Just in case, recreate all scripts for version in `py3versions -vi`; do if [ $version ]; then cp /usr/bin/py.test-3 /usr/bin/py.test-$version sed -i "s,#! */usr/bin/python3,#!/usr/bin/python$version," "/usr/bin/py.test-$version" fi done ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/python-pytest.rtinstall0000755000000000000000000000034012123052665013775 0ustar #!/bin/sh set -e PYVERSION="${2##*python}" if [ ! -e "/usr/bin/py.test-$PYVERSION" ]; then cp /usr/bin/py.test /usr/bin/py.test-$PYVERSION sed -i "s,#! */usr/bin/python,#!/usr/bin/$2," /usr/bin/py.test-$PYVERSION fi debian/compat0000644000000000000000000000000211732423233010364 0ustar 8 debian/python-pytest.docs0000644000000000000000000000001312142260467012705 0ustar README.rst debian/python-pytest-doc.doc-base0000644000000000000000000000050511741156063014203 0ustar Document: pytest Title: Pytest Documentation Author: Holger Kregel Abstract: Documentation for the pytest testing tool. Section: Programming/Python Format: HTML Index: /usr/share/doc/python-pytest-doc/html/index.html Files: /usr/share/doc/python-pytest-doc/html/* Format: Text Files: /usr/share/doc/python-pytest-doc/rst/* debian/python3-pytest.rtinstall0000755000000000000000000000034312123052665014063 0ustar #!/bin/sh set -e PYVERSION="${2##*python}" if [ ! -e "/usr/bin/py.test-$PYVERSION" ]; then cp /usr/bin/py.test-3 /usr/bin/py.test-$PYVERSION sed -i "s,#! */usr/bin/python3,#!/usr/bin/$2," /usr/bin/py.test-$PYVERSION fi