def _verify_version(self, version = None): """ Ensure we have a good version number and that it has not already been packaged and published """ if version == None: version = self.metadata.version if not version: raise ValidationFailure("Driver version required in metadata") p = re.compile("^\d+\.\d+\.\d+$") if not p.findall("%s" % version): raise ValidationFailure("Version format incorrect '%s', should be x.x.x" % version)
def _verify_python(self): """ Ensure we build with the correct python version """ if sys.version_info < (2, 7) or sys.version_info >= (2, 8): raise ValidationFailure( "Egg generation required version 2.7 of python")