コード例 #1
0
ファイル: fabfile.py プロジェクト: ngokevin/zamboni
def create_virtualenv(update_on_change=False):
    helpers.create_venv(
        VIRTUALENV, settings.PYREPO, pjoin(ZAMBONI, "requirements/prod.txt"), update_on_change=update_on_change
    )

    if settings.LOAD_TESTING:
        helpers.pip_install_reqs(pjoin(ZAMBONI, "requirements/load.txt"))
コード例 #2
0
def create_virtualenv():
    venv = VIRTUALENV
    if venv.startswith(pjoin('/data', 'src', settings.CLUSTER)):
        local('rm -rf %s' % venv)

    helpers.create_venv(VIRTUALENV, settings.PYREPO,
                        pjoin(SOLITUDE, 'requirements/prod.txt'))
コード例 #3
0
def create_virtualenv(update_on_change=False):
    helpers.create_venv(VIRTUALENV, settings.PYREPO,
                        pjoin(OLYMPIA, 'requirements/prod.txt'),
                        update_on_change=update_on_change)

    if settings.LOAD_TESTING:
        helpers.pip_install_reqs(pjoin(OLYMPIA, 'requirements/load.txt'))
コード例 #4
0
ファイル: fabfile.py プロジェクト: jasonthomas/solitude
def create_virtualenv():
    venv = VIRTUALENV
    if venv.startswith(pjoin('/data', 'src', settings.CLUSTER)):
        local('rm -rf %s' % venv)

    helpers.create_venv(VIRTUALENV, settings.PYREPO,
                        pjoin(SOLITUDE, 'requirements/prod.txt'))
コード例 #5
0
ファイル: fabfile.py プロジェクト: chilyashev/zamboni
def create_virtualenv():
    if VIRTUALENV.startswith(pjoin('/data', 'src', settings.CLUSTER)):
        local('rm -rf %s' % VIRTUALENV)

    helpers.create_venv(VIRTUALENV, settings.PYREPO,
                        pjoin(ZAMBONI, 'requirements/prod.txt'))

    if settings.LOAD_TESTING:
        helpers.pip_install_reqs(pjoin(ZAMBONI, 'requirements/load.txt'))
コード例 #6
0
ファイル: fabfile.py プロジェクト: milossh/webpay
def create_virtualenv():
    with lcd(WEBPAY):
        # Compare the last reflog change with the latest change we introduced.
        status = local('git diff HEAD@{1} HEAD --name-only', capture=True)

    if 'requirements/' in status:
        venv = VIRTUALENV
        if not venv.startswith('/data'):
            raise Exception('venv must start with /data')

        local('rm -rf %s' % venv)
        helpers.create_venv(venv, settings.PYREPO,
                            '%s/requirements/prod.txt' % WEBPAY)
コード例 #7
0
ファイル: fabfile.py プロジェクト: wladow/webpay
def create_virtualenv():
    with lcd(WEBPAY):
        # Compare the last reflog change with the latest change we introduced.
        status = local('git diff HEAD@{1} HEAD --name-only', capture=True)

    if 'requirements/' in status:
        venv = VIRTUALENV
        if not venv.startswith('/data'):
            raise Exception('venv must start with /data')

        local('rm -rf %s' % venv)
        helpers.create_venv(venv, settings.PYREPO,
                            '%s/requirements/prod.txt' % WEBPAY)
コード例 #8
0
def create_virtualenv(update_on_change=False):
    helpers.create_venv(VIRTUALENV,
                        settings.PYREPO,
                        pjoin(ADDON_REGISTRATION, 'requirements/prod.txt'),
                        update_on_change=update_on_change)
コード例 #9
0
ファイル: fabfile.py プロジェクト: mozilla/trunion
def create_virtualenv(update_on_change=False):
    helpers.create_venv(VIRTUALENV, settings.PYREPO,
                        pjoin(TRUNION, 'prod-reqs.txt'),
                        update_on_change=update_on_change)
コード例 #10
0
def create_virtualenv():
    helpers.create_venv(VIRTUALENV, settings.PYREPO,
                        '%s/requirements/prod.txt' % GEODUDE,
                        update_on_change=True, rm_first=True)
コード例 #11
0
ファイル: fabfile.py プロジェクト: cvan/monolith-aggregator
def create_virtualenv():
    helpers.create_venv(VIRTUALENV, settings.PYREPO,
                        pjoin(MONOLITH, 'requirements/prod.txt'))
コード例 #12
0
def create_virtualenv():
    helpers.create_venv(VIRTUALENV, settings.PYREPO,
                        pjoin(MONOLITH, 'requirements/prod.txt'))
コード例 #13
0
def create_virtualenv(update_on_change=False):
    helpers.create_venv(VIRTUALENV, settings.PYREPO,
                        pjoin(ADDON_REGISTRATION, 'requirements/prod.txt'),
                        update_on_change=update_on_change)
コード例 #14
0
def create_virtualenv(update_on_change=False):
    helpers.create_venv(VIRTUALENV,
                        settings.PYREPO,
                        pjoin(TRUNION, 'prod-reqs.txt'),
                        update_on_change=update_on_change)
コード例 #15
0
def create_virtualenv(update_on_change=True):
    helpers.create_venv(VIRTUALENV,
                        settings.PYREPO,
                        pjoin(APP, 'requirements.prod.txt'),
                        update_on_change=update_on_change)
コード例 #16
0
ファイル: fabfile.py プロジェクト: mstriemer/svcops-puppet
def create_virtualenv(update_on_change=True):
    helpers.create_venv(VIRTUALENV, settings.PYREPO,
                        pjoin(APP, 'requirements.prod.txt'),
                        update_on_change=update_on_change)