[Checkins] SVN: z3c.rotterdam/trunk/ Added buildout and bootstrap configuration so that the module can be tested standalone.

Kevin Gill kevin at movieextras.ie
Mon Oct 20 09:32:46 EDT 2008


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

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

-=-
Added: z3c.rotterdam/trunk/bootstrap.py
===================================================================
--- z3c.rotterdam/trunk/bootstrap.py	                        (rev 0)
+++ z3c.rotterdam/trunk/bootstrap.py	2008-10-20 13:32:46 UTC (rev 92404)
@@ -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.rotterdam/trunk/bootstrap.py
___________________________________________________________________
Name: svn:eol-style
   + native

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


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

Modified: z3c.rotterdam/trunk/setup.py
===================================================================
--- z3c.rotterdam/trunk/setup.py	2008-10-20 13:16:54 UTC (rev 92403)
+++ z3c.rotterdam/trunk/setup.py	2008-10-20 13:32:46 UTC (rev 92404)
@@ -39,12 +39,6 @@
           'jquery.javascript',
           'jquery.layer',
 
-          'zope.app.testing',
-          'zope.testbrowser',
-          'zope.app.dtmlpage',
-          'zope.app.onlinehelp',
-          'zope.app.securitypolicy',
-          'zope.app.zcmlfiles'
       ],
       extras_require = dict(
             test = [

Modified: z3c.rotterdam/trunk/z3c.rotterdam.egg-info/PKG-INFO
===================================================================
--- z3c.rotterdam/trunk/z3c.rotterdam.egg-info/PKG-INFO	2008-10-20 13:16:54 UTC (rev 92403)
+++ z3c.rotterdam/trunk/z3c.rotterdam.egg-info/PKG-INFO	2008-10-20 13:32:46 UTC (rev 92404)
@@ -1,6 +1,6 @@
 Metadata-Version: 1.0
 Name: z3c.rotterdam
-Version: 1.0.1devdev
+Version: 1.0.1devdev-r92401
 Summary: A version of the rotterdam skin which supports z3c.pagelet and z3c.form
 Home-page: http://pypi.python.org/pypi/z3c.rotterdam
 Author: Kevin Gill and the Zope Community

Modified: z3c.rotterdam/trunk/z3c.rotterdam.egg-info/SOURCES.txt
===================================================================
--- z3c.rotterdam/trunk/z3c.rotterdam.egg-info/SOURCES.txt	2008-10-20 13:16:54 UTC (rev 92403)
+++ z3c.rotterdam/trunk/z3c.rotterdam.egg-info/SOURCES.txt	2008-10-20 13:32:46 UTC (rev 92404)
@@ -1,6 +1,7 @@
 README.txt
 setup.cfg
 setup.py
+docs/HISTORY.txt
 z3c/__init__.py
 z3c.rotterdam.egg-info/PKG-INFO
 z3c.rotterdam.egg-info/SOURCES.txt
@@ -10,7 +11,14 @@
 z3c.rotterdam.egg-info/not-zip-safe
 z3c.rotterdam.egg-info/requires.txt
 z3c.rotterdam.egg-info/top_level.txt
+z3c/rotterdam/README.txt
 z3c/rotterdam/__init__.py
+z3c/rotterdam/configure.zcml
+z3c/rotterdam/default_skin.zcml
 z3c/rotterdam/demo.py
+z3c/rotterdam/ftesting.zcml
 z3c/rotterdam/testing.py
-z3c/rotterdam/tests.py
\ No newline at end of file
+z3c/rotterdam/tests.py
+z3c/rotterdam/resources/demo.css
+z3c/rotterdam/resources/demo.js
+z3c/rotterdam/templates/template_tablelayout.pt
\ No newline at end of file

Modified: z3c.rotterdam/trunk/z3c.rotterdam.egg-info/requires.txt
===================================================================
--- z3c.rotterdam/trunk/z3c.rotterdam.egg-info/requires.txt	2008-10-20 13:16:54 UTC (rev 92403)
+++ z3c.rotterdam/trunk/z3c.rotterdam.egg-info/requires.txt	2008-10-20 13:32:46 UTC (rev 92404)
@@ -12,11 +12,11 @@
 z3c.zrtresource
 jquery.javascript
 jquery.layer
+
+[test]
 zope.app.testing
 zope.testbrowser
 zope.app.dtmlpage
 zope.app.onlinehelp
 zope.app.securitypolicy
-zope.app.zcmlfiles
-
-[test]
+zope.app.zcmlfiles
\ No newline at end of file



More information about the Checkins mailing list