<s> """<STR_LIT>""" <EOL> from fabric . api import local , task <EOL> from . utils import msg , requires , tobool <EOL> TAG = "<STR_LIT>" <EOL> @ task ( default = True ) <EOL> @ requires ( "<STR_LIT>" ) <EOL> def build ( ** options ) : <EOL> """<STR_LIT>""" <EOL> rebuild = tobool ( options . get ( "<STR_LIT>" , False ) ) <EOL> version = options . get ( "<STR_LIT:version>" , "<STR_LIT>" ) <EOL> tag = "<STR_LIT>" . format ( TAG , version ) <EOL> args = [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , tag , "<STR_LIT:.>" ] <EOL> if rebuild : <EOL> args . insert ( - <NUM_LIT:1> , "<STR_LIT>" ) <EOL> with msg ( "<STR_LIT>" ) : <EOL> local ( "<STR_LIT:U+0020>" . join ( args ) ) <EOL> @ task ( ) <EOL> @ requires ( "<STR_LIT>" ) <EOL> def publish ( ) : <EOL> """<STR_LIT>""" <EOL> args = [ "<STR_LIT>" , "<STR_LIT>" , TAG ] <EOL> with msg ( "<STR_LIT>" ) : <EOL> local ( "<STR_LIT:U+0020>" . join ( args ) ) <EOL> @ task ( ) <EOL> @ requires ( "<STR_LIT>" ) <EOL> def run ( ) : <EOL> """<STR_LIT>""" <EOL> args = [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , TAG ] <EOL> local ( "<STR_LIT:U+0020>" . join ( args ) ) </s>
