def parse(self, vstring): _LooseVersion.parse(self, vstring) if six.PY3: # Convert every part of the version to string in order to be able to compare self._str_version = [ str(vp).zfill(8) if isinstance(vp, int) else vp for vp in self.version]
def parse(self, vstring): _LooseVersion.parse(self, vstring) if six.PY3: # Convert every part of the version to string in order to be able to compare self.version = [str(vp) for vp in self.version]
def parse(self, vstring): LooseVersion.parse(self, vstring) self.int_version = list(filter(lambda x:isinstance(x, int), self.version))
master_doc = 'index' # General information about the project. project = u'Python-Tempo' copyright = u'2015, Andrew Pashkin' author = u'Andrew Pashkin' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. _version = LooseVersion() _version.parse(open(os.path.join( os.path.dirname(os.path.abspath(__file__)), os.pardir, os.pardir, 'VERSION' )).read().strip()) version = '.'.join([str(e) for e in _version.version][:2]) # The full version, including alpha/beta/rc tags. release = _version.vstring # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. # # This is also used if you do content translation via gettext catalogs. # Usually you set "language" from the command line for these cases. language = None # There are two options for replacing |today|: either, you set today to some # non-false value, then it is used: