@task
def release(vs, upload=False):
    # start from scrach with clone and envs
    clone_repo(reset=True)
    if os.path.exists(env_root):
        shutil.rmtree(env_root)
    
    path = sdist(vs, upload=upload)
    print("Working in %r" % path)
    with cd(path):
        bdist()
        if upload:
            py = make_env('twine')
            run([py, '-m', 'twine', 'upload', 'dist/*'])
Release the package
dataset/ETHPy150Open jupyterhub/jupyterhub/tools/tasks.py/release