@task
def tag(vs, push=False):
    patch_version(vs, repo_root)
    with cd(repo_root):
        run('git commit -a -m "release {}"'.format(vs))
        run('git tag -a -m "release {0}" {0}'.format(vs))
        if push:
            run('git push')
            run('git push --tags')
Make the tagged release commit
dataset/ETHPy150Open jupyterhub/jupyterhub/tools/tasks.py/tag