upgrade.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:apio 作者: FPGAwars 项目源码 文件源码
def cli(ctx):
    """Check the latest Apio version."""

    current_version = get_distribution('apio').version
    latest_version = get_pypi_latest_version()

    if latest_version is None:
        ctx.exit(1)

    if latest_version == current_version:
        click.secho('You\'re up-to-date!\nApio {} is currently the '
                    'newest version available.'.format(latest_version),
                    fg='green')
    else:
        click.secho('You\'re not updated\nPlease execute '
                    '`pip install -U apio` to upgrade.',
                    fg="yellow")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号