r1549 - in zope.testing/trunk (5 files)
Brian Sutherland
jinty-guest at alioth.debian.org
Tue Jun 16 09:58:09 UTC 2009
Date: Tuesday, June 16, 2009 @ 09:58:07
Author: jinty-guest
Revision: 1549
* Port revision 101026 from upstream: add a zope-testrunner binary.
http://mail.zope.org/pipermail/checkins/2009-June/035183.html
* Add a test_helper shell snippet that can be included in testing files
to ease writing autopkgtest scripts.
See /usr/share/python-zope.testing/test_helper
Added:
zope.testing/trunk/debian/python-zope.testing.install
zope.testing/trunk/debian/test_helper
zope.testing/trunk/setup.py
Modified:
zope.testing/trunk/debian/changelog
zope.testing/trunk/debian/rules
Modified: zope.testing/trunk/debian/changelog
===================================================================
--- zope.testing/trunk/debian/changelog 2009-06-15 12:20:38 UTC (rev 1548)
+++ zope.testing/trunk/debian/changelog 2009-06-16 09:58:07 UTC (rev 1549)
@@ -1,3 +1,13 @@
+zope.testing (3.7.4-4) unstable; urgency=low
+
+ * Port revision 101026 from upstream: add a zope-testrunner binary.
+ http://mail.zope.org/pipermail/checkins/2009-June/035183.html
+ * Add a test_helper shell snippet that can be included in testing files
+ to ease writing autopkgtest scripts.
+ See /usr/share/python-zope.testing/test_helper
+
+ -- Brian Sutherland <brian at vanguardistas.net> Mon, 15 Jun 2009 05:56:09 +0200
+
zope.testing (3.7.4-3) unstable; urgency=low
* Fix test script again: one of the subtleties of grep is that it's exit
Added: zope.testing/trunk/debian/python-zope.testing.install
===================================================================
--- zope.testing/trunk/debian/python-zope.testing.install (rev 0)
+++ zope.testing/trunk/debian/python-zope.testing.install 2009-06-16 09:58:07 UTC (rev 1549)
@@ -0,0 +1 @@
+debian/test_helper usr/share/python-zope.testing
Modified: zope.testing/trunk/debian/rules
===================================================================
--- zope.testing/trunk/debian/rules 2009-06-15 12:20:38 UTC (rev 1548)
+++ zope.testing/trunk/debian/rules 2009-06-16 09:58:07 UTC (rev 1549)
@@ -5,3 +5,6 @@
dependencies-python%:
(echo -n 'setuptools:Depends=' && van-pydeb depends --egg-info debian/$(package)/usr/lib/python$*/site-packages/$(py_package).egg-info --exclude-extra zope_tracebacks) >> debian/$(package).substvars
(echo -n 'setuptools:Recommends=' && van-pydeb depends --egg-info debian/$(package)/usr/lib/python$*/site-packages/$(py_package).egg-info --extra zope_tracebacks) >> debian/$(package).substvars
+
+post-install-python%:
+ mv debian/$(package)/usr/bin/zope-testrunner debian/$(package)/usr/bin/zope-testrunner$*
Added: zope.testing/trunk/debian/test_helper
===================================================================
--- zope.testing/trunk/debian/test_helper (rev 0)
+++ zope.testing/trunk/debian/test_helper 2009-06-16 09:58:07 UTC (rev 1549)
@@ -0,0 +1,20 @@
+# includable shell script to make test scripts smaller
+
+set -e
+
+if [ "z${testfilter}" == z ]; then
+ if [ -x /usr/bin/van-pydeb ]; then
+ testfilter="-s $(van-pydeb src_to_py $(dpkg-parsechangelog -c1 -ldebian/changelog | grep 'Source: ' | sed 's/Source: //'))"
+ else
+ echo "Could not find van-pydeb to guess the python package name. You should have your tests depend on it or you "
+ echo "must specify testfilter variable, something like -p package_name, see zope-testrunner --help for details."
+ exit 1
+ fi
+fi
+
+PYVERS=$(pyversions -vr debian/control)
+
+for version in ${PYVERS}; do
+ echo Running tests for python${version}: /usr/bin/zope-testrunner${version} -v -k --test-path /usr/lib/python${version}/site-packages/ ${testfilter}
+ /usr/bin/zope-testrunner${version} -v -k --test-path /usr/lib/python${version}/site-packages/ ${testfilter}
+done
Added: zope.testing/trunk/setup.py
===================================================================
--- zope.testing/trunk/setup.py (rev 0)
+++ zope.testing/trunk/setup.py 2009-06-16 09:58:07 UTC (rev 1549)
@@ -0,0 +1,108 @@
+##############################################################################
+#
+# Copyright (c) 2004 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""Setup for zope.testing package
+
+$Id: setup.py 101026 2009-06-15 19:52:19Z jinty $
+"""
+
+import os
+
+try:
+ from setuptools import setup
+ extra = dict(
+ namespace_packages=['zope',],
+ install_requires = ['setuptools',
+ 'zope.interface'],
+ extras_require={'zope_tracebacks': 'zope.exceptions'},
+ entry_points = {'console_scripts': ['zope-testrunner = zope.testing.testrunner:run',]},
+ include_package_data = True,
+ zip_safe = False,
+ )
+except ImportError, e:
+ from distutils.core import setup
+ extra = {}
+
+chapters = '\n'.join([
+ open(os.path.join('src', 'zope', 'testing', 'testrunner', name)).read()
+ for name in (
+ 'testrunner.txt',
+ 'testrunner-simple.txt',
+ 'testrunner-layers-api.txt',
+ 'testrunner-layers.txt',
+ 'testrunner-arguments.txt',
+ 'testrunner-verbose.txt',
+ 'testrunner-test-selection.txt',
+ 'testrunner-progress.txt',
+
+ # The following seems to cause weird unicode in the output: :(
+ ## 'testrunner-errors.txt',
+
+ 'testrunner-debugging.txt',
+ 'testrunner-layers-ntd.txt',
+ 'testrunner-coverage.txt',
+ 'testrunner-profiling.txt',
+ 'testrunner-wo-source.txt',
+ 'testrunner-repeat.txt',
+ 'testrunner-gc.txt',
+ 'testrunner-leaks.txt',
+ 'testrunner-knit.txt',
+ )])
+
+chapters += '\n'.join([
+ open(os.path.join('src', 'zope', 'testing', name)).read()
+ for name in (
+ 'formparser.txt',
+ 'setupstack.txt',
+ )])
+
+long_description=(
+ open('README.txt').read()
+ + '\n' +
+ open('CHANGES.txt').read()
+ + '\n' +
+ 'Detailed Documentation\n'
+ '**********************\n'
+ + '\n' + chapters
+ )
+
+open('documentation.txt', 'w').write(long_description)
+
+setup(
+ name='zope.testing',
+ version = '3.7.6dev',
+ url='http://pypi.python.org/pypi/zope.testing',
+ license='ZPL 2.1',
+ description='Zope testing framework, including the testrunner script.',
+ long_description=long_description,
+ author='Zope Corporation and Contributors',
+ author_email='zope-dev at zope.org',
+
+ packages=["zope", "zope.testing"],
+ package_dir = {'': 'src'},
+
+ classifiers=[
+ "Development Status :: 5 - Production/Stable",
+ "Environment :: Console",
+ "Framework :: Zope3",
+ "Intended Audience :: Developers",
+ "License :: OSI Approved :: Zope Public License",
+ "Operating System :: OS Independent",
+ "Programming Language :: Python :: 2.4",
+ "Programming Language :: Python :: 2.5",
+ "Programming Language :: Python :: 2.6",
+ "Topic :: Software Development :: Libraries :: Python Modules",
+ "Topic :: Software Development :: Testing",
+ ],
+
+ **extra)
Property changes on: zope.testing/trunk/setup.py
___________________________________________________________________
Added: svn:eol-style
+ native
More information about the pkg-zope-commits
mailing list