@task
def check_tag_exists():
 version = get_sympy_version()
 tag = ('sympy-' + version)
 with cd('/home/vagrant/repos/sympy'):
  all_tags = run('git ls-remote --tags origin')
 return (tag in all_tags)

@ task def check_tag_exists ( ) : version = get_sympy_version ( ) tag = ( 'sympy-' + version ) with cd ( '/home/vagrant/repos/sympy' ) : all_tags = run ( 'git ls-remote --tags origin' ) return ( tag in all_tags )
check if the tag for this release has been uploaded yet .