[Checkins] SVN: Sandbox/thefunny42/kgs.test/trunk/ Add some verbose information. Fill README.txt.
Sylvain Viollon
sylvain at infrae.com
Tue Jan 27 06:41:35 EST 2009
Log message for revision 95120:
Add some verbose information. Fill README.txt.
Changed:
U Sandbox/thefunny42/kgs.test/trunk/README.txt
U Sandbox/thefunny42/kgs.test/trunk/src/kgs_test.py
-=-
Modified: Sandbox/thefunny42/kgs.test/trunk/README.txt
===================================================================
--- Sandbox/thefunny42/kgs.test/trunk/README.txt 2009-01-27 11:25:38 UTC (rev 95119)
+++ Sandbox/thefunny42/kgs.test/trunk/README.txt 2009-01-27 11:41:35 UTC (rev 95120)
@@ -22,6 +22,8 @@
- ``PYTHON_CACHE_EGG``: Where your cache egg is.
+- ``PYTHON_CACHE_DOWNLOAD``: Where your download directory is.
+
- ``ZOPE3_SVN``: Url to the Zope SVN. By default it's
``svn://svn.zope.org/repos/main/``. You might want to change it to
include your username, or use a mirror.
Modified: Sandbox/thefunny42/kgs.test/trunk/src/kgs_test.py
===================================================================
--- Sandbox/thefunny42/kgs.test/trunk/src/kgs_test.py 2009-01-27 11:25:38 UTC (rev 95119)
+++ Sandbox/thefunny42/kgs.test/trunk/src/kgs_test.py 2009-01-27 11:41:35 UTC (rev 95120)
@@ -28,11 +28,15 @@
IGNORED = BLACKLIST + DELETE_LIST
-def to_test(project, packages):
+def to_test(project, packages, check=False):
"""Gives back the egg to test.
"""
- if len(packages) < 1:
- import pdb; pdb.set_trace();
+ if check:
+ print "%s %s" % (project, packages[0].version)
+ requires = packages[0].requires()
+ for req in requires:
+ if len(req.specs):
+ print "Requirement %s" % req
if 'test' in packages[0].extras:
return project + ' [test]'
return project
@@ -99,23 +103,26 @@
easy_install.download_cache(DOWNLOAD_CACHE)
for project in projects:
- print project
if not os.path.isdir(project):
os.system('svn co %s/%s/trunk %s' % (ZOPE3_SVN, project, project))
script_name = project.replace('.', '-')
# Released version
- easy_install.install([project], os.path.abspath(EGG_CACHE), working_set=kgs_ws, newest=True)
kgs_env = Environment([EGG_CACHE,])
kgs_ws = WorkingSet(kgs_env)
packages = kgs_env[project]
+ if not len(packages):
+ easy_install.install([project],
+ os.path.abspath(EGG_CACHE),
+ working_set=kgs_ws, newest=True)
+ packages = kgs_env[project]
kgs_conf.write("""
[test-%s]
recipe = zc.recipe.testrunner
eggs = %s
-""" % (script_name, to_test(project, packages)))
+""" % (script_name, to_test(project, packages, True)))
# Trunk version
packages = trunk_env[project]
More information about the Checkins
mailing list