Exemplo n.º 1
0
def venv_pth():
    '''
    Add a code directory to the virtualenv sys.path.
    '''
    require('configured')
    fabvenv.Venv(venv_dir(),
                 requirements_file()).venv_pth([os.path.abspath('.')])
Exemplo n.º 2
0
def venv_pth():
    '''
    Add the code directory to the virtualenv sys.path.
    '''
    require('configured')
    fabvenv.Venv(config.venv, config.requirements).venv_pth([config.code])
Exemplo n.º 3
0
def venv_remove():
    require('configured')
    venv = fabvenv.Venv(config.venv, config.requirements)
    if venv.exists():
        venv.remove()
Exemplo n.º 4
0
def venv_freeze():
    require('configured')
    fabvenv.Venv(config.venv, config.requirements).freeze()
Exemplo n.º 5
0
def venv_upgrade():
    require('configured')
    fabvenv.Venv(config.venv, config.requirements).upgrade()
Exemplo n.º 6
0
def venv_install():
    require('configured')
    fabvenv.Venv(config.venv, config.requirements).install()
Exemplo n.º 7
0
def venv_create():
    require('configured')
    venv = fabvenv.Venv(config.venv, config.requirements)
    if not venv.exists():
        venv.create(config.system_python)
Exemplo n.º 8
0
def venv_remove():
    require('configured')
    venv = fabvenv.Venv(venv_dir(), requirements_file())
    if venv.exists():
        venv.remove()
Exemplo n.º 9
0
def venv_freeze():
    require('configured')
    fabvenv.Venv(venv_dir(), requirements_file()).freeze()
Exemplo n.º 10
0
def venv_upgrade():
    require('configured')
    fabvenv.Venv(venv_dir(), requirements_file()).upgrade()
Exemplo n.º 11
0
def venv_install():
    require('configured')
    fabvenv.Venv(venv_dir(), requirements_file()).install()
Exemplo n.º 12
0
def venv_create():
    require('configured')
    venv = fabvenv.Venv(venv_dir(), requirements_file())
    if not venv.exists():
        venv.create()