[Checkins] SVN: z3c.recipe.compattest/trunk/ Ignore missing package releases for packages listed in Subversion (as
Christian Theune
ct at gocept.com
Thu Jan 29 04:11:15 EST 2009
Log message for revision 95385:
Ignore missing package releases for packages listed in Subversion (as
long as we don't try to run from Subversion).
Changed:
U z3c.recipe.compattest/trunk/CHANGES.txt
U z3c.recipe.compattest/trunk/buildout.cfg
U z3c.recipe.compattest/trunk/src/z3c/recipe/compattest/recipe.py
-=-
Modified: z3c.recipe.compattest/trunk/CHANGES.txt
===================================================================
--- z3c.recipe.compattest/trunk/CHANGES.txt 2009-01-29 08:43:30 UTC (rev 95384)
+++ z3c.recipe.compattest/trunk/CHANGES.txt 2009-01-29 09:11:15 UTC (rev 95385)
@@ -5,6 +5,9 @@
0.4 (unreleased)
================
+- Ignore missing package releases for packages listed in Subversion (as
+ long as we don't try to run from Subversion).
+
- Allow parallel execution of the individual test runners by stating
'max_jobs=X' in the recipe's options.
Modified: z3c.recipe.compattest/trunk/buildout.cfg
===================================================================
--- z3c.recipe.compattest/trunk/buildout.cfg 2009-01-29 08:43:30 UTC (rev 95384)
+++ z3c.recipe.compattest/trunk/buildout.cfg 2009-01-29 09:11:15 UTC (rev 95385)
@@ -10,10 +10,8 @@
[compattest]
recipe = z3c.recipe.compattest
include = z3c.recipe.compattest
-exclude = zope.container
[compattest-trunk]
recipe = z3c.recipe.compattest
include = zope.dottedname
use_svn = true
-exclude = zope.container
Modified: z3c.recipe.compattest/trunk/src/z3c/recipe/compattest/recipe.py
===================================================================
--- z3c.recipe.compattest/trunk/src/z3c/recipe/compattest/recipe.py 2009-01-29 08:43:30 UTC (rev 95384)
+++ z3c.recipe.compattest/trunk/src/z3c/recipe/compattest/recipe.py 2009-01-29 09:11:15 UTC (rev 95385)
@@ -94,7 +94,16 @@
def _install_testrunners(self):
installed = []
for package in self.wanted_packages:
- if self._needs_test_dependencies(package):
+ try:
+ needs_test = self._needs_test_dependencies(package)
+ except zc.buildout.easy_install.MissingDistribution, e:
+ if e.data[0].project_name == package and not self.use_svn:
+ # This package has a project in subversion but no
+ # release (yet). We'll ignore it for now.
+ print "No release found for %s. Ignoring." % package
+ continue
+ raise
+ if needs_test:
extra = ' [test]'
else:
extra = ''
More information about the Checkins
mailing list