[Checkins] SVN: zope.app.wfmc/trunk/ - added bootstrap

Christian Theune ct at gocept.com
Mon May 14 12:20:10 EDT 2007


Log message for revision 75746:
   - added bootstrap
   - fixed dependencies
   - removed residual recorder code
  

Changed:
  _U  zope.app.wfmc/trunk/
  A   zope.app.wfmc/trunk/bootstrap.py
  U   zope.app.wfmc/trunk/buildout.cfg
  U   zope.app.wfmc/trunk/setup.py
  D   zope.app.wfmc/trunk/src/zope/app/recorder/

-=-

Property changes on: zope.app.wfmc/trunk
___________________________________________________________________
Name: svn:ignore
   - develop-eggs
bin
parts

   + develop-eggs
eggs
.installed.cfg
bin
parts


Added: zope.app.wfmc/trunk/bootstrap.py
===================================================================
--- zope.app.wfmc/trunk/bootstrap.py	                        (rev 0)
+++ zope.app.wfmc/trunk/bootstrap.py	2007-05-14 16:20:10 UTC (rev 75746)
@@ -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: bootstrap.py 72703 2007-02-20 11:49:26Z jim $
+"""
+
+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: zope.app.wfmc/trunk/bootstrap.py
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: zope.app.wfmc/trunk/buildout.cfg
===================================================================
--- zope.app.wfmc/trunk/buildout.cfg	2007-05-14 16:08:49 UTC (rev 75745)
+++ zope.app.wfmc/trunk/buildout.cfg	2007-05-14 16:20:10 UTC (rev 75746)
@@ -1,58 +1,8 @@
 [buildout]
 develop = .
-parts = instance test
+parts = test
+find-links = http://download.zope.org/distribution/
 
-[zope3]
-recipe = zc.recipe.zope3checkout
-url = svn://svn.zope.org/repos/main/Zope3/trunk
-
-[app]
-recipe = zc.zope3recipes:app
-eggs = zc.z3monitor
-servers = zserver
-site.zcml =
-  <include package="zope.app.zcmlfiles" />
-  <include package="zope.app.securitypolicy" />
-  <include package="zope.app.securitypolicy" file="meta.zcml" />
-  <include package="zope.app.authentication" />
-  <include package="zope.app.server" />
-  <securityPolicy
-    component="zope.app.securitypolicy.zopepolicy.ZopeSecurityPolicy" />
-  <role id="zope.Anonymous" title="Everybody"
-                 description="All users have this role implicitly" />
-  <role id="zope.Manager" title="Site Manager" />
-  <role id="zope.Member" title="Site Member" />
-  <grantAll role="zope.Manager" />
-  <unauthenticatedPrincipal
-    id="zope.anybody"
-    title="Unauthenticated User" 
-    />
-  <principal
-      id="zope.manager"
-      title="Manager"
-      login="jim"
-      password_manager="SHA1"
-      password="40bd001563085fc35165329ea1ff5c5ecbdbbeef"
-      />
-  <grant
-      role="zope.Manager"
-      principal="zope.manager"
-      />
-  <include package="zc.z3monitor" />
-
-[instance]
-recipe = zc.zope3recipes:instance
-application = app
-zope.conf =
-   ${database:zconfig}
-   <product-config zc.z3monitor>
-      port 8000
-   </product-config>
-
-[database]
-recipe = zc.recipe.filestorage
-
 [test]
 recipe = zc.recipe.testrunner
-eggs = zc.z3monitor
-extra-paths = ${zope3:location}/src
+eggs = zope.app.wfmc [test]

Modified: zope.app.wfmc/trunk/setup.py
===================================================================
--- zope.app.wfmc/trunk/setup.py	2007-05-14 16:08:49 UTC (rev 75745)
+++ zope.app.wfmc/trunk/setup.py	2007-05-14 16:20:10 UTC (rev 75746)
@@ -1,16 +1,22 @@
 from setuptools import setup, find_packages
 
 setup(
-    name = '',
+    name = 'zope.app.wfmc',
     version = '0.1',
-    author = 'Jim Fulton',
-    author_email = 'jim at zope.com',
+    author = 'Zope Corporation and Contributors',
+    author_email = 'zope3-dev at zope.org',
     description = '',
     license = 'ZPL 2.1',
-    
+
     packages = find_packages('src'),
     namespace_packages = ['zope', 'zope.app'],
     package_dir = {'': 'src'},
-    install_requires = ['setuptools'],
+    extras_require=dict(test=['zope.app.testing']),
+    install_requires = ['setuptools',
+                       'zope.interface',
+                       'zope.schema',
+                       'zope.configuration',
+                       'zope.wfmc',
+                       'zope.component'],
     zip_safe = False,
     )



More information about the Checkins mailing list