[Checkins] SVN: Sandbox/thefunny42/kgs.test/ An helper script which checkout Zope and Grok component, and create a simple buildout to test them all.

Sylvain Viollon sylvain at infrae.com
Mon Jan 26 10:24:36 EST 2009


Log message for revision 95030:
  An helper script which checkout Zope and Grok component, and create a simple buildout to test them all.
  
  

Changed:
  A   Sandbox/thefunny42/kgs.test/
  A   Sandbox/thefunny42/kgs.test/trunk/
  A   Sandbox/thefunny42/kgs.test/trunk/build.py

-=-
Added: Sandbox/thefunny42/kgs.test/trunk/build.py
===================================================================
--- Sandbox/thefunny42/kgs.test/trunk/build.py	                        (rev 0)
+++ Sandbox/thefunny42/kgs.test/trunk/build.py	2009-01-26 15:24:35 UTC (rev 95030)
@@ -0,0 +1,73 @@
+
+import os.path
+import popen2
+
+ZOPE3_SVN = "svn://svn.zope.org/repos/main/"
+
+wanted = []
+BLACKLIST = ['zope.agxassociation', 'zope.app.css', 'zope.app.demo', \
+                 'zope.app.fssync', 'zope.app.recorder', \
+                 'zope.app.schemacontent', 'zope.app.sqlexpr', \
+                 'zope.app.styleguide', 'zope.app.tests', \
+                 'zope.app.versioncontrol', 'zope.app.zopetop', \
+                 'zope.bobo', 'zope.browserzcml2', 'zope.fssync', \
+                 'zope.generic', 'zope.importtool', 'zope.kgs', \
+                 'zope.release', 'zope.pytz', 'zope.timestamp', \
+                 'zope.tutorial', 'zope.ucol', 'zope.weakset', \
+                 'zope.webdev', 'zope.xmlpickle',]
+DELETE_LIST = ['zope.app.boston',]
+IGNORED = BLACKLIST + DELETE_LIST
+
+svn_list, _ = popen2.popen2("svn ls %s" % ZOPE3_SVN)
+for project in svn_list:
+    project = project[:-2]
+    if project in IGNORED:
+        continue
+    parts = project.split('.')
+    if parts[0] in ('zope', 'grokcore', ):
+        wanted.append(project)
+
+
+kgs_conf = open('kgs.cfg', 'w')
+trunk_conf = open('trunk.cfg', 'w')
+makefile = open('Makefile', 'w')
+
+kgs_conf.write("""
+[buildout]
+extends = versions.cfg
+#versions = versions
+newest = true
+parts = 
+""")
+makefile.write("""
+all: """)
+trunk_conf.write("""
+[buildout]
+extends = kgs.cfg
+develop = 
+""")
+
+
+for project in wanted:
+    script_name = project.replace('.', '-')
+    kgs_conf.write("  test-%s\n" % script_name)
+    makefile.write(" test-%s" % script_name)
+    trunk_conf.write("  %s\n" % project)
+
+makefile.write("""
+
+test-%:
+	$(CURDIR)/bin/$@
+""")
+
+for project in wanted:
+    kgs_conf.write("""
+[test-%s]
+recipe = zc.recipe.testrunner
+eggs = %s
+""" % (project.replace('.', '-'), project))
+
+    if not os.path.isdir(project):
+        os.system('svn co svn://svn.zope.org/repos/main/%s/trunk %s' % (project, project))
+
+



More information about the Checkins mailing list