[Checkins] SVN: Sandbox/cklinger/grok-coredev/ Importing basic grok-coredev buildout

Christian Klinger cklinger at novareto.de
Mon Apr 6 14:07:39 EDT 2009


Log message for revision 98950:
  Importing basic grok-coredev buildout

Changed:
  A   Sandbox/cklinger/grok-coredev/.README.txt.swp
  A   Sandbox/cklinger/grok-coredev/README.txt
  A   Sandbox/cklinger/grok-coredev/alltests.py
  A   Sandbox/cklinger/grok-coredev/bootstrap.py
  A   Sandbox/cklinger/grok-coredev/buildout.cfg
  A   Sandbox/cklinger/grok-coredev/sources.cfg
  A   Sandbox/cklinger/grok-coredev/versions.cfg

-=-
Added: Sandbox/cklinger/grok-coredev/.README.txt.swp
===================================================================
(Binary files differ)


Property changes on: Sandbox/cklinger/grok-coredev/.README.txt.swp
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: Sandbox/cklinger/grok-coredev/README.txt
===================================================================
--- Sandbox/cklinger/grok-coredev/README.txt	                        (rev 0)
+++ Sandbox/cklinger/grok-coredev/README.txt	2009-04-06 18:07:39 UTC (rev 98950)
@@ -0,0 +1,43 @@
+============
+grokcore-dev
+============
+
+This buildout generates you a "out of the box" development
+package for these grok packages:
+
+- grok
+- grokcore.component
+- grokcore.view
+- grokcore.viewlet
+- grokcore.security
+- grokcore.formlib
+- grokui.admin
+- martian
+
+This means that you find in the src directory the fresh checkout´s
+of the trunk from the above packages.
+
+
+mr.developer
+------------
+
+The checkout´s are done with help of the python package 
+mr.developer. For further information please look at the 
+pypi package of this package [1] or call the 'bin/develop help'
+command which is created during buildout process
+
+commands
+--------
+
+Starting the Grok instance with the wiki-application:
+
+  ./bin/zopectl fg
+
+You can use the debug prompt with:
+
+  ./bin/zopectl debug
+
+You can run the tests for the packages with:  
+
+  ./bin/test -s grokcore.formlib
+[1] http://pypi.python.org/pypi/mr.developer/0.11

Added: Sandbox/cklinger/grok-coredev/alltests.py
===================================================================
--- Sandbox/cklinger/grok-coredev/alltests.py	                        (rev 0)
+++ Sandbox/cklinger/grok-coredev/alltests.py	2009-04-06 18:07:39 UTC (rev 98950)
@@ -0,0 +1,58 @@
+"""
+This script assumes to be called via python alltests.py while the current
+directory is the buildout root.
+"""
+
+import os
+import sys
+
+disabled = [
+    '.svn',
+]
+
+package_map = {
+}
+
+def main(args=[]):
+    curdir = os.curdir
+    test = os.path.join(curdir, 'bin', 'test')
+
+    src = os.path.join(curdir, 'src')
+    packages = []
+    for directory in os.listdir(src):
+        if directory not in disabled:
+            setup = os.path.join(src, directory, 'setup.py')
+            if os.path.exists(setup):
+                name = package_map.get(directory, directory)
+                try:
+                    __import__(name)
+                except ImportError:
+                    pass
+                else:
+                    packages.append(name)
+
+    arg = ' '.join(args)
+
+    errors = []
+    for p in sorted(packages):
+        print '#### Running tests for %s ####' % p
+        value = os.system('%s -1 --auto-progress --auto-color --exit-with-status %s -s %s' % (test, arg, p))
+        if value > 0:
+            errors.append(p)
+        print '#### Finished tests for %s ####' % p
+        print
+
+    print
+    print '#### Begin test results ####'
+    for e in errors:
+        print 'Failing tests in %s' % e
+    print '#### End test results ####'
+
+    if len(errors) > 0:
+        return 1
+    return 0
+
+if __name__ == '__main__':
+    args = sys.argv[1:]
+    result = main(args)
+    sys.exit(result)

Added: Sandbox/cklinger/grok-coredev/bootstrap.py
===================================================================
--- Sandbox/cklinger/grok-coredev/bootstrap.py	                        (rev 0)
+++ Sandbox/cklinger/grok-coredev/bootstrap.py	2009-04-06 18:07:39 UTC (rev 98950)
@@ -0,0 +1,77 @@
+##############################################################################
+#
+# 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()
+
+is_jython = sys.platform.startswith('java')
+
+try:
+    import pkg_resources
+except ImportError:
+    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
+
+if sys.platform == 'win32':
+    def quote(c):
+        if ' ' in c:
+            return '"%s"' % c # work around spawn lamosity on windows
+        else:
+            return c
+else:
+    def quote (c):
+        return c
+
+cmd = 'from setuptools.command.easy_install import main; main()'
+ws  = pkg_resources.working_set
+
+if is_jython:
+    import subprocess
+    
+    assert subprocess.Popen([sys.executable] + ['-c', quote(cmd), '-mqNxd', 
+           quote(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, quote (sys.executable),
+        '-c', quote (cmd), '-mqNxd', quote (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: Sandbox/cklinger/grok-coredev/buildout.cfg
===================================================================
--- Sandbox/cklinger/grok-coredev/buildout.cfg	                        (rev 0)
+++ Sandbox/cklinger/grok-coredev/buildout.cfg	2009-04-06 18:07:39 UTC (rev 98950)
@@ -0,0 +1,81 @@
+[buildout]
+parts = 
+    zopectl 
+    test
+    zopepy
+    data
+    grokwiki
+
+extends = sources.cfg versions.cfg
+extensions = mr.developer
+
+develop = 
+    src/*
+    src/grok/grokwiki
+eggs = 
+
+
+[data]
+recipe = zc.recipe.filestorage
+
+
+[zopectl]
+recipe = zc.zope3recipes:instance
+application = grokwiki
+zope.conf = ${data:zconfig}
+
+
+[test]
+recipe = zc.recipe.testrunner
+eggs = 
+    grok
+    grokcore.component
+    grokcore.view
+    grokcore.security
+    grokcore.viewlet
+    grokcore.formlib
+    martian
+defaults = ['-v', '--exit-with-status', '--auto-color', '--auto-progress']
+
+
+[zopepy]
+recipe = zc.recipe.egg
+eggs = ${test:eggs} 
+interpreter = zopepy
+scripts = zopepy
+
+
+[grokwiki]
+recipe = zc.zope3recipes>=0.5.3:application
+eggs = grokwiki
+site.zcml = <include package="grokwiki" />
+            <include package="zope.app.twisted" />
+
+            <unauthenticatedPrincipal id="zope.anybody"
+                                      title="Unauthenticated User" />
+            <unauthenticatedGroup id="zope.Anybody"
+                                  title="Unauthenticated Users" />
+            <authenticatedGroup id="zope.Authenticated"
+                                title="Authenticated Users" />
+            <everybodyGroup id="zope.Everybody"
+                            title="All Users" />
+            <principal id="zope.manager"
+                       title="Manager"
+                       login="grok"
+                       password_manager="Plain Text"
+                       password="grok"
+                       />
+
+            <!-- Replace the following directive if you do not want
+                 public access -->
+            <grant permission="zope.View"
+                   principal="zope.Anybody" />
+            <grant permission="zope.app.dublincore.view"
+                   principal="zope.Anybody" />
+
+            <role id="zope.Manager" title="Site Manager" />
+            <role id="zope.Member" title="Site Member" />
+            <grantAll role="zope.Manager" />
+            <grant role="zope.Manager"
+                   principal="zope.manager" />
+

Added: Sandbox/cklinger/grok-coredev/sources.cfg
===================================================================
--- Sandbox/cklinger/grok-coredev/sources.cfg	                        (rev 0)
+++ Sandbox/cklinger/grok-coredev/sources.cfg	2009-04-06 18:07:39 UTC (rev 98950)
@@ -0,0 +1,23 @@
+[buildout]
+
+sources = sources
+auto-checkout =
+    grok
+    grokcore.view
+    grokcore.component
+    grokcore.security
+    grokcore.viewlet
+    grokcore.formlib
+    martian
+    grokui.admin
+
+
+[sources] 
+grok                = svn svn://svn.zope.org/repos/main/grok/trunk
+grokcore.view       = svn svn://svn.zope.org/repos/main/grokcore.view/trunk
+grokcore.component  = svn svn://svn.zope.org/repos/main/grokcore.component/trunk
+grokcore.security   = svn svn://svn.zope.org/repos/main/grokcore.security/tags/1.0
+grokcore.viewlet    = svn svn://svn.zope.org/repos/main/grokcore.viewlet/trunk
+grokcore.formlib    = svn svn://svn.zope.org/repos/main/grokcore.formlib/trunk
+martian             = svn svn://svn.zope.org/repos/main/martian/tags/0.11/
+grokui.admin        = svn svn://svn.zope.org/repos/main/grokui.admin/trunk

Added: Sandbox/cklinger/grok-coredev/versions.cfg
===================================================================
--- Sandbox/cklinger/grok-coredev/versions.cfg	                        (rev 0)
+++ Sandbox/cklinger/grok-coredev/versions.cfg	2009-04-06 18:07:39 UTC (rev 98950)
@@ -0,0 +1,117 @@
+[buildout]
+
+versions = versions
+
+[versions]
+mr.developer = 0.11
+ClientForm = 0.2.9
+Pygments = 0.8.1
+RestrictedPython = 3.4.2
+ZConfig = 2.5.1
+ZODB3 = 3.8
+docutils = 0.4
+grokcore.component = 1.5.1
+grokcore.formlib = 1.1
+grokcore.security = 1.0
+grokcore.view = 1.2.1
+grokcore.viewlet = 1.0
+martian = 0.11
+mechanize = 0.1.7b
+pytz = 2007k
+simplejson = 1.7.1
+z3c.autoinclude = 0.2.2
+z3c.flashmessage = 1.0
+z3c.testsetup = 0.2.1
+zc.catalog = 1.2
+zc.recipe.testrunner = 1.0.0
+zdaemon = 2.0.2
+zodbcode = 3.4
+zope.annotation = 3.4.1
+zope.app.apidoc = 3.4.3
+zope.app.applicationcontrol = 3.4.3
+zope.app.appsetup = 3.4.1
+zope.app.authentication = 3.4.3
+zope.app.basicskin = 3.4
+zope.app.broken = 3.4
+zope.app.catalog = 3.5.1
+zope.app.component = 3.4.1
+zope.app.container = 3.5.6
+zope.app.content = 3.4
+zope.app.debug = 3.4.1
+zope.app.dependable = 3.4
+zope.app.error = 3.5.1
+zope.app.exception = 3.4.1
+zope.app.file = 3.4.4
+zope.app.folder = 3.4
+zope.app.form = 3.4.1
+zope.app.generations = 3.4.1
+zope.app.http = 3.4.1
+zope.app.i18n = 3.4.4
+zope.app.interface = 3.4
+zope.app.intid = 3.4.1
+zope.app.keyreference = 3.4.1
+zope.app.locales = 3.4.5
+zope.app.onlinehelp = 3.4.1
+zope.app.pagetemplate = 3.4.1
+zope.app.preference = 3.4.1
+zope.app.principalannotation = 3.4
+zope.app.publication = 3.4.3
+zope.app.publisher = 3.5.1
+zope.app.renderer = 3.4
+zope.app.rotterdam = 3.4.1
+zope.app.schema = 3.4
+zope.app.security = 3.5.2
+zope.app.securitypolicy = 3.4.6
+zope.app.server = 3.4.2
+zope.app.session = 3.5.1
+zope.app.skins = 3.4
+zope.app.testing = 3.4.3
+zope.app.tree = 3.4
+zope.app.twisted = 3.4.1
+zope.app.wsgi = 3.4.1
+zope.app.zapi = 3.4
+zope.app.zcmlfiles = 3.4.3
+zope.app.zopeappgenerations = 3.4
+zope.cachedescriptors = 3.4.1
+zope.component = 3.4
+zope.configuration = 3.4
+zope.contentprovider = 3.4
+zope.contenttype = 3.4
+zope.copypastemove = 3.4
+zope.datetime = 3.4
+zope.deferredimport = 3.4
+zope.deprecation = 3.4
+zope.dottedname = 3.4.2
+zope.dublincore = 3.4
+zope.error = 3.5.1
+zope.event = 3.4
+zope.exceptions = 3.4
+zope.filerepresentation = 3.4
+zope.formlib = 3.4
+zope.hookable = 3.4
+zope.i18n = 3.4
+zope.i18nmessageid = 3.4.3
+zope.index = 3.4.1
+zope.interface = 3.4.1
+zope.lifecycleevent = 3.4
+zope.location = 3.4
+zope.minmax = 1.1
+zope.modulealias = 3.4
+zope.pagetemplate = 3.4
+zope.proxy = 3.4.2
+zope.publisher = 3.4.6
+zope.schema = 3.4
+zope.security = 3.4.1
+zope.securitypolicy = 3.4.1
+zope.server = 3.4.3
+zope.session = 3.4.1
+zope.size = 3.4
+zope.structuredtext = 3.4
+zope.tal = 3.4.1
+zope.tales = 3.4
+zope.testbrowser = 3.4.2
+zope.testing = 3.5.4
+zope.thread = 3.4
+zope.traversing = 3.4.1
+zope.viewlet = 3.4.2
+



More information about the Checkins mailing list