#NEWLINE# @ task #NEWLINE# def sdist( vs , upload = False ) : #NEWLINE# #INDENT# clone_repo ( ) #NEWLINE# tag ( vs , push = upload ) #NEWLINE# py = make_env ( ) #NEWLINE# tarball = build_sdist ( py ) #NEWLINE# if tarball : #NEWLINE# #INDENT# with cd ( repo_root ) : #NEWLINE# #INDENT# install ( py , 'twine' ) #NEWLINE# run ( [ py , '-m' , 'twine' , 'upload' , 'dist/*' ] ) #NEWLINE# #UNINDENT# #UNINDENT# untag ( vs , push = upload ) #NEWLINE# return untar ( tarball )