[Checkins] SVN: z3c.boston/trunk/ Added buildout and bootstrap configuration so that the module

Kevin Gill kevin at movieextras.ie
Mon Oct 20 09:16:57 EDT 2008


Log message for revision 92403:
  Added buildout and bootstrap configuration so that the module
  can be tested standalone.
  
  

Changed:
  A   z3c.boston/trunk/bootstrap.py
  A   z3c.boston/trunk/buildout.cfg
  U   z3c.boston/trunk/setup.py
  U   z3c.boston/trunk/z3c.boston.egg-info/PKG-INFO
  U   z3c.boston/trunk/z3c.boston.egg-info/SOURCES.txt
  U   z3c.boston/trunk/z3c.boston.egg-info/requires.txt

-=-
Added: z3c.boston/trunk/bootstrap.py
===================================================================
--- z3c.boston/trunk/bootstrap.py	                        (rev 0)
+++ z3c.boston/trunk/bootstrap.py	2008-10-20 13:16:54 UTC (rev 92403)
@@ -0,0 +1,52 @@
+##############################################################################
+#
+# Copyright (c) 2008 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: z3c.boston/trunk/bootstrap.py
___________________________________________________________________
Name: svn:eol-style
   + native

Added: z3c.boston/trunk/buildout.cfg
===================================================================
--- z3c.boston/trunk/buildout.cfg	                        (rev 0)
+++ z3c.boston/trunk/buildout.cfg	2008-10-20 13:16:54 UTC (rev 92403)
@@ -0,0 +1,9 @@
+[buildout]
+develop = .
+parts = test 
+index = http://download.zope.org/zope3.4
+
+[test]
+recipe = zc.recipe.testrunner
+eggs = z3c.boston [test]
+


Property changes on: z3c.boston/trunk/buildout.cfg
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: z3c.boston/trunk/setup.py
===================================================================
--- z3c.boston/trunk/setup.py	2008-10-20 12:47:20 UTC (rev 92402)
+++ z3c.boston/trunk/setup.py	2008-10-20 13:16:54 UTC (rev 92403)
@@ -37,14 +37,6 @@
           'z3c.zrtresource',
           'jquery.javascript',
           'jquery.layer',
-
-          # required for testing
-          'zope.app.testing',
-          'zope.testbrowser',
-          'zope.app.dtmlpage',
-          'zope.app.onlinehelp',
-          'zope.app.securitypolicy',
-          'zope.app.zcmlfiles'
       ],
       extras_require = dict(
           test = [

Modified: z3c.boston/trunk/z3c.boston.egg-info/PKG-INFO
===================================================================
--- z3c.boston/trunk/z3c.boston.egg-info/PKG-INFO	2008-10-20 12:47:20 UTC (rev 92402)
+++ z3c.boston/trunk/z3c.boston.egg-info/PKG-INFO	2008-10-20 13:16:54 UTC (rev 92403)
@@ -1,6 +1,6 @@
 Metadata-Version: 1.0
 Name: z3c.boston
-Version: 1.0.1devdev-r92389
+Version: 1.0.1devdev-r92402
 Summary: A version of the zope.app.boston skin which support pagelets.
 Home-page: http://pypi.python.org/pypi/z3c.boston
 Author: Kevin Gill and the Zope Community

Modified: z3c.boston/trunk/z3c.boston.egg-info/SOURCES.txt
===================================================================
--- z3c.boston/trunk/z3c.boston.egg-info/SOURCES.txt	2008-10-20 12:47:20 UTC (rev 92402)
+++ z3c.boston/trunk/z3c.boston.egg-info/SOURCES.txt	2008-10-20 13:16:54 UTC (rev 92403)
@@ -19,4 +19,6 @@
 z3c/boston/ftesting.zcml
 z3c/boston/testing.py
 z3c/boston/tests.py
+z3c/boston/resources/demo.css
+z3c/boston/resources/demo.js
 z3c/boston/templates/layout.pt
\ No newline at end of file

Modified: z3c.boston/trunk/z3c.boston.egg-info/requires.txt
===================================================================
--- z3c.boston/trunk/z3c.boston.egg-info/requires.txt	2008-10-20 12:47:20 UTC (rev 92402)
+++ z3c.boston/trunk/z3c.boston.egg-info/requires.txt	2008-10-20 13:16:54 UTC (rev 92403)
@@ -11,13 +11,9 @@
 z3c.zrtresource
 jquery.javascript
 jquery.layer
-zope.testbrowser
-zope.app.dtmlpage
-zope.app.onlinehelp
-zope.app.securitypolicy
-zope.app.zcmlfiles
 
 [test]
+zope.app.testing
 zope.testbrowser
 zope.app.dtmlpage
 zope.app.onlinehelp



More information about the Checkins mailing list