def get_github_releases(project):
 url = u'{}/{}/tags'.format(GITHUB_API, project)
 response = requests.get(url)
 response.raise_for_status()
 versions = get_versions(response.json())
 return sorted(versions, reverse=True, key=operator.attrgetter(u'order'))

def get_github_releases ( project ) : url = u'{}/{}/tags' . format ( GITHUB_API , project ) response = requests . get ( url ) response . raise_for_status ( ) versions = get_versions ( response . json ( ) ) return sorted ( versions , reverse = True , key = operator . attrgetter ( u'order' ) )
query the github api for a list of version tags and return them in sorted order .