def _get_version_from_git_tag(path):
 m = GIT_DESCRIBE_REGEX.match((_git_describe_tags(path) or ''))
 if (m is None):
  return None
 (version, post_commit, hash) = m.groups()
 return (version if (post_commit == '0') else '{0}.post{1}+{2}'.format(version, post_commit, hash))

def _get_version_from_git_tag ( path ) : m = GIT_DESCRIBE_REGEX . match ( ( _git_describe_tags ( path ) or '' ) ) if ( m is None ) : return None ( version , post_commit , hash ) = m . groups ( ) return ( version if ( post_commit == '0' ) else '{0}.post{1}+{2}' . format ( version , post_commit , hash ) )
return a pep440-compliant version derived from the git status .