408 help='Will give you an idea of what is happening under the hood, '
409 '-vv to increase verbosity level')
410 # no --download = False, --download filename.tar, --download = None
411 parser.add_argument('-d', '-o', '--download', '--output', dest='download', nargs='?', default=False, const=None,412 metavar='FILENAME', help='Download with custom filename')
413 # how / which data of last release we want to present
414 # assets will give download urls for assets if available and sources archive otherwise
398 help='Action to run. Default: get',
399 choices=['get', 'download', 'extract', 'unzip', 'test', 'format', 'install', 'update-spec'])
400 parser.add_argument('repo', metavar='<repo URL or string>',
401 help='Repository in format owner/name or any URL that belongs to it, or a version string')402 # affects what is considered last release
403 parser.add_argument('--pre', dest='pre', action='store_true',
404 help='Include pre-releases in potential versions')
396 prog='lastversion')
397 parser.add_argument('action', nargs='?', default='get',
398 help='Action to run. Default: get',
399 choices=['get', 'download', 'extract', 'unzip', 'test', 'format', 'install', 'update-spec'])400 parser.add_argument('repo', metavar='<repo URL or string>',
401 help='Repository in format owner/name or any URL that belongs to it, or a version string')
402 # affects what is considered last release
142 if current_version != 'x':
143 repo_data['current_version'] = Version(current_version)
144 except InvalidVersion:
145 log.critical('Failed to parse current version in %s. Tried %s', repo, current_version)146 sys.exit(1)
147 if upstream_name:
148 repo_data['name'] = upstream_name
468 # authorization header may cause a false positive 200 response with an empty feed!
469 'Authorization': ''
470 }
471 r = self.get('https://{}/{}/releases.atom'.format(self.hostname, self.repo), headers=headers)472 # API requests are varied by cookie, we don't want serializer for cache fail because of that
473 self.cookies.clear()
474 if r.status_code == 404 and not rename_checked:
Line length greater than configured max_line_length
detected, defaults to 79 character. This limit can be configured docs