@cli.command(name='<STR_LIT:list>')<EOL>def list_releases():
response = requests.get(PYPI_URL.format(package=PYPI_PACKAGE_NAME))<EOL>if response:<EOL><INDENT>data = response.json()<EOL>releases_dict = data.get('<STR_LIT>', {})<EOL>if releases_dict:<EOL><INDENT>for version, release in releases_dict.items():<EOL><INDENT>release_formats = []<EOL>published_on_date = None<EOL>for fmt in release:<EOL><INDENT>release_formats.append(fmt.get('<STR_LIT>'))<EOL>published_on_date = fmt.get('<STR_LIT>')<EOL><DEDENT>release_formats = '<STR_LIT>'.join(release_formats)<EOL>print('<STR_LIT>'.format(version, published_on_date, release_formats))<EOL><DEDENT><DEDENT>else:<EOL><INDENT>print('<STR_LIT>'.format(PYPI_PACKAGE_NAME))<EOL><DEDENT><DEDENT>else:<EOL><INDENT>print('<STR_LIT>'.format(PYPI_PACKAGE_NAME))<EOL><DEDENT>
Lists all releases published on pypi.