[Checkins] SVN: zope.testrunner/trunk/ Surrounding files.
Lennart Regebro
regebro at gmail.com
Mon Apr 19 04:02:20 EDT 2010
Log message for revision 111060:
Surrounding files.
Changed:
A zope.testrunner/trunk/CHANGES.txt
A zope.testrunner/trunk/COPYRIGHT.txt
A zope.testrunner/trunk/LICENSE.txt
A zope.testrunner/trunk/MANIFEST.in
A zope.testrunner/trunk/README.txt
A zope.testrunner/trunk/bootstrap.py
A zope.testrunner/trunk/buildout.cfg
A zope.testrunner/trunk/setup.py
A zope.testrunner/trunk/src/
A zope.testrunner/trunk/src/zope/
A zope.testrunner/trunk/src/zope/__init__.py
-=-
Added: zope.testrunner/trunk/CHANGES.txt
===================================================================
--- zope.testrunner/trunk/CHANGES.txt (rev 0)
+++ zope.testrunner/trunk/CHANGES.txt 2010-04-19 08:02:20 UTC (rev 111060)
@@ -0,0 +1,7 @@
+zope.testrunner Changelog
+*************************
+
+4.0.0 (Unreleased)
+==================
+
+- Extracted the testrunner from zope.testing.testrunner to it's own module.
\ No newline at end of file
Added: zope.testrunner/trunk/COPYRIGHT.txt
===================================================================
--- zope.testrunner/trunk/COPYRIGHT.txt (rev 0)
+++ zope.testrunner/trunk/COPYRIGHT.txt 2010-04-19 08:02:20 UTC (rev 111060)
@@ -0,0 +1 @@
+Zope Foundation and Contributors
\ No newline at end of file
Added: zope.testrunner/trunk/LICENSE.txt
===================================================================
--- zope.testrunner/trunk/LICENSE.txt (rev 0)
+++ zope.testrunner/trunk/LICENSE.txt 2010-04-19 08:02:20 UTC (rev 111060)
@@ -0,0 +1,44 @@
+Zope Public License (ZPL) Version 2.1
+
+A copyright notice accompanies this license document that identifies the
+copyright holders.
+
+This license has been certified as open source. It has also been designated as
+GPL compatible by the Free Software Foundation (FSF).
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions in source code must retain the accompanying copyright
+notice, this list of conditions, and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the accompanying copyright
+notice, this list of conditions, and the following disclaimer in the
+documentation and/or other materials provided with the distribution.
+
+3. Names of the copyright holders must not be used to endorse or promote
+products derived from this software without prior written permission from the
+copyright holders.
+
+4. The right to distribute this software or to use it for any purpose does not
+give you the right to use Servicemarks (sm) or Trademarks (tm) of the
+copyright
+holders. Use of them is covered by separate agreement with the copyright
+holders.
+
+5. If any files are modified, you must cause the modified files to carry
+prominent notices stating that you changed the files and the date of any
+change.
+
+Disclaimer
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED
+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 HOLDERS 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.
Added: zope.testrunner/trunk/MANIFEST.in
===================================================================
--- zope.testrunner/trunk/MANIFEST.in (rev 0)
+++ zope.testrunner/trunk/MANIFEST.in 2010-04-19 08:02:20 UTC (rev 111060)
@@ -0,0 +1,3 @@
+include *.txt *.py buildout.cfg
+recursive-include src *.py *.txt *.test sampletests
+# I found no way to include the three empty "sampletests" directories into the sdist :/
Added: zope.testrunner/trunk/README.txt
===================================================================
--- zope.testrunner/trunk/README.txt (rev 0)
+++ zope.testrunner/trunk/README.txt 2010-04-19 08:02:20 UTC (rev 111060)
@@ -0,0 +1,16 @@
+***************
+zope.testrunner
+***************
+
+.. contents::
+
+This package provides a flexible test runner with layer support.
+
+
+Getting started
+***************
+
+zope.testing uses buildout. To start, run ``python bootstrap.py``. It will
+create a number of directories and the ``bin/buildout`` script. Next, run
+``bin/buildout``. It will create a test script for you. Now, run ``bin/test``
+to run the zope.testing test suite.
Added: zope.testrunner/trunk/bootstrap.py
===================================================================
--- zope.testrunner/trunk/bootstrap.py (rev 0)
+++ zope.testrunner/trunk/bootstrap.py 2010-04-19 08:02:20 UTC (rev 111060)
@@ -0,0 +1,68 @@
+##############################################################################
+#
+# Copyright (c) 2006 Zope Foundation 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.
+#
+##############################################################################
+"""Bootstrap a buildout-based project
+
+Simply run this script in a directory containing a buildout.cfg.
+The script accepts buildout command-line options, so you can
+use the -c option to specify an alternate configuration file.
+
+$Id: bootstrap.py 110538 2010-04-06 03:02:54Z tseaver $
+"""
+
+import os, shutil, sys, tempfile, urllib2
+
+tmpeggs = tempfile.mkdtemp()
+
+ez = {}
+exec urllib2.urlopen('http://peak.telecommunity.com/dist/ez_setup.py'
+ ).read() in ez
+ez['use_setuptools'](to_dir=tmpeggs, download_delay=0)
+
+import pkg_resources
+
+is_jython = sys.platform.startswith('java')
+
+if is_jython:
+ import subprocess
+
+cmd = 'from setuptools.command.easy_install import main; main()'
+if sys.platform == 'win32':
+ cmd = '"%s"' % cmd # work around spawn lamosity on windows
+
+ws = pkg_resources.working_set
+
+if is_jython:
+ assert subprocess.Popen(
+ [sys.executable] + ['-c', cmd, '-mqNxd', tmpeggs, 'zc.buildout'],
+ env = dict(os.environ,
+ PYTHONPATH=
+ ws.find(pkg_resources.Requirement.parse('setuptools')).location
+ ),
+ ).wait() == 0
+
+else:
+ assert os.spawnle(
+ os.P_WAIT, sys.executable, sys.executable,
+ '-c', cmd, '-mqNxd', tmpeggs, 'zc.buildout',
+ dict(os.environ,
+ PYTHONPATH=
+ ws.find(pkg_resources.Requirement.parse('setuptools')).location
+ ),
+ ) == 0
+
+ws.add_entry(tmpeggs)
+ws.require('zc.buildout')
+import zc.buildout.buildout
+zc.buildout.buildout.main(sys.argv[1:] + ['bootstrap'])
+shutil.rmtree(tmpeggs)
Added: zope.testrunner/trunk/buildout.cfg
===================================================================
--- zope.testrunner/trunk/buildout.cfg (rev 0)
+++ zope.testrunner/trunk/buildout.cfg 2010-04-19 08:02:20 UTC (rev 111060)
@@ -0,0 +1,34 @@
+[buildout]
+develop = .
+parts = test
+
+[test]
+recipe = zc.recipe.testrunner
+eggs = zope.testing
+
+
+# The [test2X] sections below are to make testing with various Python versions
+# easier. You'll need entries in your default.cfg that point to the location
+# that your various versions of Python are installed. Like so:
+#
+# [python2.4]
+# executable = /usr/local/bin/python2.4
+#
+# And then run "bin/buildout install test24 test25 test26" to build the
+# version-specific test scripts. Once that's done you ran run "bin/test24"
+# (etc.).
+
+[test24]
+python = python2.4
+recipe = zc.recipe.testrunner
+eggs = zope.testing
+
+[test25]
+python = python2.5
+recipe = zc.recipe.testrunner
+eggs = zope.testing
+
+[test26]
+python = python2.6
+recipe = zc.recipe.testrunner
+eggs = zope.testing
Added: zope.testrunner/trunk/setup.py
===================================================================
--- zope.testrunner/trunk/setup.py (rev 0)
+++ zope.testrunner/trunk/setup.py 2010-04-19 08:02:20 UTC (rev 111060)
@@ -0,0 +1,100 @@
+##############################################################################
+#
+# Copyright (c) 2004 Zope Foundation 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.
+#
+##############################################################################
+# This package is developed by the Zope Toolkit project, documented here:
+# http://docs.zope.org/zopetoolkit
+# When developing and releasing this package, please follow the documented
+# Zope Toolkit policies as described by this documentation.
+##############################################################################
+"""Setup for zope.testrunner package
+
+$Id: setup.py 110769 2010-04-13 10:30:45Z sidnei $
+"""
+
+import os
+
+from setuptools import setup
+
+chapters = '\n'.join([
+ open(os.path.join('src', 'zope', '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',
+ )])
+
+long_description=(
+ open('README.txt').read()
+ + '\n' +
+ open('CHANGES.txt').read()
+ + '\n' +
+ 'Detailed Documentation\n'
+ '**********************\n'
+ + '\n' + chapters
+ )
+
+setup(
+ name='zope.testrunner',
+ version = '4.0.0',
+ url='http://pypi.python.org/pypi/zope.testrunner',
+ license='ZPL 2.1',
+ description='Zope testrunner script.',
+ long_description=long_description,
+ author='Zope Foundation and Contributors',
+ author_email='zope-dev at zope.org',
+ packages=["zope", "zope.testrunner"],
+ 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",
+ ],
+ namespace_packages=['zope',],
+ install_requires = ['setuptools',
+ 'zope.exceptions',
+ 'zope.interface',
+ 'zope.testing>=4.0.0dev',],
+ entry_points = {
+ 'console_scripts':
+ ['zope-testrunner = zope.testrunner:run',]},
+ include_package_data = True,
+ zip_safe = False,
+ test_suite = 'zope.testrunner.tests.test_suite',
+ dependency_links = ['.'], # Only until the release of zope.testing 4.0.0
+)
Added: zope.testrunner/trunk/src/zope/__init__.py
===================================================================
--- zope.testrunner/trunk/src/zope/__init__.py (rev 0)
+++ zope.testrunner/trunk/src/zope/__init__.py 2010-04-19 08:02:20 UTC (rev 111060)
@@ -0,0 +1 @@
+__import__('pkg_resources').declare_namespace(__name__)
More information about the checkins
mailing list