Skip to content
This repository has been archived by the owner on May 13, 2020. It is now read-only.

Commit

Permalink
note skipped versions in the status table
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Groszer committed Jan 21, 2013
1 parent 441d1d0 commit 15737aa
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/zope/wineggbuilder/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ def build(self, status):

status.setVersions(self, versions)

def skip(version):
for target in self.targets:
status.setStatus(self, version, "skip", target)

#1.1 filter versions according to minVersion and maxVersion:
if self.minVersion:
minver = StrictVersion(self.minVersion)
Expand All @@ -170,6 +174,8 @@ def build(self, status):
try:
if StrictVersion(v) >= minver:
ov.append(v)
else:
skip(v)
except ValueError:
pass
versions = ov
Expand All @@ -181,12 +187,19 @@ def build(self, status):
try:
if StrictVersion(v) <= maxver:
ov.append(v)
else:
skip(v)
except ValueError:
pass
versions = ov

versions = [v for v in versions
if v not in self.excludeVersions]
ov = []
for v in versions:
if v in self.excludeVersions:
skip(v)
else:
ov.append(v)
versions = ov

versions.sort()
if len(versions) == 0:
Expand Down

0 comments on commit 15737aa

Please sign in to comment.