<s> from fabric . api import local , lcd <EOL> import os <EOL> PROJECT_ROOT = os . path . dirname ( __file__ ) <EOL> PROJECT_NAME = "<STR_LIT>" <EOL> project_dir = os . path . join ( PROJECT_ROOT , PROJECT_NAME ) <EOL> venv_dir = os . path . join ( local ( "<STR_LIT>" , capture = True ) , <EOL> PROJECT_NAME , "<STR_LIT>" , "<STR_LIT>" ) <EOL> def venv_local ( command , capture = False ) : <EOL> return local ( '<STR_LIT>' % ( venv_dir , command ) , <EOL> capture = capture ) <EOL> def msg_update ( ) : <EOL> with lcd ( project_dir ) : <EOL> venv_local ( '<STR_LIT>' ) <EOL> venv_local ( '<STR_LIT>' ) <EOL> def msg_compile ( ) : <EOL> with lcd ( project_dir ) : <EOL> venv_local ( '<STR_LIT>' ) <EOL> def test ( ) : <EOL> local ( '<STR_LIT>' ) <EOL> def save_requirements ( ) : <EOL> venv_local ( '<STR_LIT>' ) <EOL> def prepare_commit ( ) : <EOL> test ( ) <EOL> save_requirements ( ) <EOL> msg_compile ( ) </s>
