[Checkins] SVN: zc.recipe.testrunner/trunk/ Get ready for release.

Stephan Richter srichter at cosmos.phy.tufts.edu
Sat Nov 3 20:36:27 EDT 2007


Log message for revision 81466:
  Get ready for release.
  

Changed:
  A   zc.recipe.testrunner/trunk/bootstrap.py
  U   zc.recipe.testrunner/trunk/setup.py
  U   zc.recipe.testrunner/trunk/src/zc/recipe/testrunner/tests.py

-=-
Added: zc.recipe.testrunner/trunk/bootstrap.py
===================================================================
--- zc.recipe.testrunner/trunk/bootstrap.py	                        (rev 0)
+++ zc.recipe.testrunner/trunk/bootstrap.py	2007-11-04 00:36:26 UTC (rev 81466)
@@ -0,0 +1,52 @@
+##############################################################################
+#
+# Copyright (c) 2006 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.
+#
+##############################################################################
+"""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$
+"""
+
+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
+
+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
+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)


Property changes on: zc.recipe.testrunner/trunk/bootstrap.py
___________________________________________________________________
Name: svn:keywords
   + Id

Modified: zc.recipe.testrunner/trunk/setup.py
===================================================================
--- zc.recipe.testrunner/trunk/setup.py	2007-11-04 00:22:13 UTC (rev 81465)
+++ zc.recipe.testrunner/trunk/setup.py	2007-11-04 00:36:26 UTC (rev 81466)
@@ -7,7 +7,7 @@
 name = "zc.recipe.testrunner"
 setup(
     name = name,
-    version = "1.0.0b8",
+    version = "1.0.0",
     author = "Jim Fulton",
     author_email = "jim at zope.com",
     description = "ZC Buildout recipe for creating test runners",
@@ -39,8 +39,8 @@
     test_suite = name+'.tests.test_suite',
     entry_points = {'zc.buildout': ['default = %s:TestRunner' % name]},
     classifiers = [
+       'Development Status :: 5 - Production/Stable',
        'Framework :: Buildout',
-       'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: Zope Public License',
        'Topic :: Software Development :: Build Tools',

Modified: zc.recipe.testrunner/trunk/src/zc/recipe/testrunner/tests.py
===================================================================
--- zc.recipe.testrunner/trunk/src/zc/recipe/testrunner/tests.py	2007-11-04 00:22:13 UTC (rev 81465)
+++ zc.recipe.testrunner/trunk/src/zc/recipe/testrunner/tests.py	2007-11-04 00:36:26 UTC (rev 81466)
@@ -34,14 +34,14 @@
             checker=renormalizing.RENormalizing([
                zc.buildout.testing.normalize_path,
                zc.buildout.testing.normalize_script,
-               zc.buildout.testing.normalize_egg_py,        
-               (re.compile('#!\S+python\S*'), '#!python'),
+               zc.buildout.testing.normalize_egg_py,
+               (re.compile('#!\S+py\S*'), '#!python'),
                (re.compile('\d[.]\d+ seconds'), '0.001 seconds'),
                (re.compile('zope.testing-[^-]+-'), 'zope.testing-X-'),
                (re.compile('setuptools-[^-]+-'), 'setuptools-X-'),
                ])
             ),
-        
+
         ))
 
 if __name__ == '__main__':



More information about the Checkins mailing list