[Checkins] SVN: Sandbox/adamg/zope.wineggbuilder/trunk/src/zope/wineggbuilder/build.py by default check for source release (.zip/.tar.gz/.tgz)
Adam Groszer
agroszer at gmail.com
Fri Jun 18 14:20:20 EDT 2010
Log message for revision 113619:
by default check for source release (.zip/.tar.gz/.tgz)
Changed:
U Sandbox/adamg/zope.wineggbuilder/trunk/src/zope/wineggbuilder/build.py
-=-
Modified: Sandbox/adamg/zope.wineggbuilder/trunk/src/zope/wineggbuilder/build.py
===================================================================
--- Sandbox/adamg/zope.wineggbuilder/trunk/src/zope/wineggbuilder/build.py 2010-06-18 18:12:55 UTC (rev 113618)
+++ Sandbox/adamg/zope.wineggbuilder/trunk/src/zope/wineggbuilder/build.py 2010-06-18 18:20:20 UTC (rev 113619)
@@ -133,6 +133,7 @@
self.tagurl = self.tagurl[:-1]
self.minVersion = getOption(config, sectionName, 'minVersion')
self.maxVersion = getOption(config, sectionName, 'maxVersion')
+ self.needSource = bool(getOption(config, sectionName, 'needSource', 'True'))
self.targets = []
for target in config.get(sectionName, 'targets').split():
self.targets.append(compilers[target])
@@ -182,6 +183,7 @@
simple = self.urlGetterKlass().get(self.pypiurl)
soup = BeautifulSoup.BeautifulSoup(simple)
VERSION = re.compile(self.name+r'-(\d+\.\d+(\.\d+){0,2})')
+ gotSource = False
for tag in soup('a'):
cntnt = str(tag.contents[0]) # str: re does not like non-strings
@@ -193,6 +195,14 @@
LOGGER.debug('Got a file: %s', cntnt)
verFiles[version].append(cntnt)
+ if (cntnt.endswith('.zip')
+ or cntnt.endswith('.tar.gz')
+ or cntnt.endswith('tgz')):
+ gotSource = True
+
+ if self.needSource and not gotSource:
+ LOGGER.info("No source release (.zip/.tar.gz/.tgz) found")
+
svn = self.svnKlass(exitOnError=False)
for version in versions:
#3 check whether we need a build
More information about the checkins
mailing list