<s> import os <EOL> import atm <EOL> def build ( file = None ) : <EOL> atm . assert_c ( ( "<STR_LIT>" , "<STR_LIT>" ) ) <EOL> atm . build ( file , arch = "<STR_LIT:all>" ) <EOL> name_ver = atm . conf ( "<STR_LIT>" ) <EOL> name_src = atm . conf ( "<STR_LIT>" ) <EOL> repo_f = atm . path ( "<STR_LIT>" ) <EOL> result_f = atm . path ( "<STR_LIT:result>" ) <EOL> tmp_f = atm . path ( "<STR_LIT>" ) <EOL> dist_f = atm . path ( "<STR_LIT>" ) <EOL> atm . git ( clean = True ) <EOL> atm . copy ( repo_f , result_f ) <EOL> atm . copy ( repo_f , os . path . join ( tmp_f , name_src ) ) <EOL> os . chdir ( repo_f ) <EOL> atm . pytest ( ) <EOL> atm . pysdist ( ) <EOL> atm . copy ( os . path . join ( "<STR_LIT>" , name_ver + "<STR_LIT>" ) , dist_f ) <EOL> os . chdir ( dist_f ) <EOL> atm . hash_d ( ) <EOL> def run ( ) : <EOL> arguments = atm . parse_args ( names = ( ) ) <EOL> file = arguments . get ( "<STR_LIT:file>" , None ) <EOL> build ( <EOL> file = file <EOL> ) <EOL> def cleanup ( ) : <EOL> atm . cleanup ( ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> try : run ( ) <EOL> finally : cleanup ( ) </s>
