def latest_release_tag():
 git_tags = subprocess.check_output(['git', 'tag', '-l'], stderr=subprocess.STDOUT).split()
 release_tags = [tag for tag in git_tags if tag.startswith('ckan-')]
 release_tags.sort()
 if release_tags:
  return release_tags[(-1)]
 else:
  return 'COULD_NOT_DETECT_VERSION_NUMBER'

def latest_release_tag ( ) : git_tags = subprocess . check_output ( [ 'git' , 'tag' , '-l' ] , stderr = subprocess . STDOUT ) . split ( ) release_tags = [ tag for tag in git_tags if tag . startswith ( 'ckan-' ) ] release_tags . sort ( ) if release_tags : return release_tags [ ( - 1 ) ] else : return 'COULD_NOT_DETECT_VERSION_NUMBER'
return the name of the git tag for the latest stable release .