@task
def publish(test=False):
    clean()
    install()
    if test:
        run('python setup.py register -r test sdist bdist_wheel', echo=True)
        run('twine upload dist/* -r test', echo=True)
    else:
        run('python setup.py register sdist bdist_wheel', echo=True)
        run('twine upload dist/*', echo=True)
Publish to the cheeseshop.
dataset/ETHPy150Open jmcarp/flask-apispec/tasks.py/publish