@task<EOL>def release():
with settings(warn_only=True):<EOL><INDENT>r = local(clom.git['<STR_LIT>']('<STR_LIT>', '<STR_LIT>', '<STR_LIT>'))<EOL>branch = str(local("<STR_LIT>", capture=True)).strip()<EOL><DEDENT>if branch != '<STR_LIT>':<EOL><INDENT>abort('<STR_LIT>')<EOL><DEDENT>elif r.return_code != <NUM_LIT:0>:<EOL><INDENT>abort('<STR_LIT>')<EOL><DEDENT>version = open('<STR_LIT>').read().strip()<EOL>print(green('<STR_LIT>' % version))<EOL>local(clom.git.flow.release.start(version))<EOL>local(clom.git.flow.release.finish(version, m='<STR_LIT>' % version))<EOL>local(clom.git.push('<STR_LIT>', '<STR_LIT>', tags=True))<EOL>local(clom.python('<STR_LIT>', '<STR_LIT>', '<STR_LIT>'))<EOL>
Release current version to pypi