@task
def tag_release(ctx, version):
 version = set_version(ctx, version, push=True)
 ctx.run("git tag -a {0} -m 'Release {0}'".format(version))
 ctx.run('git push --tags')

@ task def tag_release ( ctx , version ) : version = set_version ( ctx , version , push = True ) ctx . run ( "git tag -a {0} -m 'Release {0}'" . format ( version ) ) ctx . run ( 'git push --tags' )
tag specified release .