#NEWLINE# @ task #NEWLINE# def release( vs , upload = False ) : #NEWLINE# #INDENT# 'Release the package' #NEWLINE# clone_repo ( reset = True ) #NEWLINE# if os . path . exists ( env_root ) : #NEWLINE# #INDENT# shutil . rmtree ( env_root ) #NEWLINE# #UNINDENT# path = sdist ( vs , upload = upload ) #NEWLINE# print ( ( 'Working in %r' % path ) ) #NEWLINE# with cd ( path ) : #NEWLINE# #INDENT# bdist ( ) #NEWLINE# if path : #NEWLINE# #INDENT# py = make_env ( 'twine' ) #NEWLINE# run ( [ py , '-m' , 'twine' , 'upload' , 'dist/*' ] )