def loc(activate=True, py=None, ref=None, invenio='master', **kwargs): """ Local environment (example: loc:py=24,ref=master) """ env = env_create('loc', name=env_make_name('inspireprod', py or '', ref or ''), activate=activate, python=py, **kwargs) # Do not use git-new-workdir env.WITH_WORKDIR = False env.CFG_SRCWORKDIR = env.CFG_SRCDIR # Adds specific inspire steps to, e.g bootstrap task env.CFG_INSPIRE_SITE = 1 # Setup Invenio/INSPIRE source directories (works just as short-cuts) # Their path must match CFG_SRCDIR/<reponame> where <reponame> is defined # in CFG_INVENIO_REPOS. env.CFG_INVENIO_SRCDIR = os.path.join(env.CFG_SRCDIR, 'invenio-inspire-ops') env.CFG_INSPIRE_SRCDIR = os.path.join(env.CFG_SRCDIR, 'inspire') env.CFG_INVENIO_REPOS = [ ('invenio-inspire-ops', { 'repository': 'ssh://[email protected]/afs/cern.ch/project/inspire/repo/invenio-inspire-ops.git', 'ref': 'origin/prod', 'bootstrap_targets': ['all', 'install', 'install-mathjax-plugin', 'install-ckeditor-plugin', 'install-pdfa-helper-files', 'install-jquery-plugins', ], 'deploy_targets': ['all', 'install', ], 'requirements': ['requirements.txt', 'requirements-extra.txt'] }), ('inspire', { 'repository': 'ssh://[email protected]/afs/cern.ch/user/s/simko/public/repo/inspire.git', 'ref': 'origin/master', 'bootstrap_targets': ['install', ], 'deploy_targets': ['install', ], 'configure_hook': template_hook_factory('config-local.mk', '%(topsrcdir)s/config-local.mk'), 'prepare_hook': None }), ] env.CFG_DATABASE_HOST = 'localhost' env.CFG_DATABASE_PORT = 3306 env.CFG_INVENIO_ADMIN = '*****@*****.**' # If no database or username is specified a new database with the same # name as the virtualenv will be created. Also a user with the env username # will be created #env.CFG_DATABASE_NAME = 'invenio' #env.CFG_DATABASE_USER = '******' # Set default Invenio branch env = env_override(env, 'invenio', invenio, override={}) return env
def loc(activate=True, py=None, ref=None, invenio="master", **kwargs): """ Local environment (example: loc:py=24,ref=master) """ env = env_create( "loc", name=env_make_name("inspireinvenio", py or "", ref or ""), activate=activate, python=py, **kwargs ) # Do not use git-new-workdir env.WITH_WORKDIR = False env.CFG_SRCWORKDIR = env.CFG_SRCDIR # FIXME: Should probably be generalized via hooks in the bootstrap task instead. # Adds specific inspire steps to, e.g bootstrap task env.CFG_INSPIRE_SITE = 1 # Setup Invenio/INSPIRE source directories (works just as short-cuts) # Their path must match CFG_SRCDIR/<reponame> where <reponame> is defined # in CFG_INVENIO_REPOS. env.CFG_INVENIO_SRCDIR = os.path.join(env.CFG_SRCDIR, "invenio") env.CFG_INSPIRE_SRCDIR = os.path.join(env.CFG_SRCDIR, "inspire") env.CFG_INVENIO_REPOS += [ ( "inspire", { "repository": "http://invenio-software.org/repo/inspire", "ref": "master", "bootstrap_targets": ["install"], "deploy_targets": ["install"], "requirements": ["requirements.txt", "requirements-extra.txt"], "configure_hook": template_hook_factory("config-local.mk", "%(topsrcdir)s/config-local.mk"), "prepare_hook": None, }, ) ] env.CFG_DATABASE_HOST = "localhost" env.CFG_DATABASE_PORT = 3306 env.CFG_INVENIO_ADMIN = "*****@*****.**" # If no database or username is specified a new database with the same # name as the virtualenv will be created. Also a user with the env username # will be created # env.CFG_DATABASE_NAME = 'invenio' # env.CFG_DATABASE_USER = '******' # Set default Invenio branch env = env_override(env, "invenio", invenio, override={}) return env
def loc(activate=True, py=None, ref=None, invenio='master', **kwargs): """ Local environment (example: loc:py=24,ref=master) """ env = env_create('loc', name=env_make_name('inspireprod', py or '', ref or ''), activate=activate, python=py, **kwargs) # Do not use git-new-workdir env.WITH_WORKDIR = False env.CFG_SRCWORKDIR = env.CFG_SRCDIR # Adds specific inspire steps to, e.g bootstrap task env.CFG_INSPIRE_SITE = 1 # Setup Invenio/INSPIRE source directories (works just as short-cuts) # Their path must match CFG_SRCDIR/<reponame> where <reponame> is defined # in CFG_INVENIO_REPOS. env.CFG_INVENIO_SRCDIR = os.path.join(env.CFG_SRCDIR, 'invenio-inspire-ops') env.CFG_INSPIRE_SRCDIR = os.path.join(env.CFG_SRCDIR, 'inspire') env.CFG_INVENIO_REPOS = [ ('invenio-inspire-ops', { 'repository': 'ssh://[email protected]/afs/cern.ch/project/inspire/repo/invenio-inspire-ops.git', 'ref': 'origin/prod', 'bootstrap_targets': [ 'all', 'install', 'install-mathjax-plugin', 'install-ckeditor-plugin', 'install-pdfa-helper-files', 'install-jquery-plugins', ], 'deploy_targets': [ 'all', 'install', ], 'requirements': ['requirements.txt', 'requirements-extra.txt'] }), ('inspire', { 'repository': 'ssh://[email protected]/afs/cern.ch/user/s/simko/public/repo/inspire.git', 'ref': 'origin/master', 'bootstrap_targets': [ 'install', ], 'deploy_targets': [ 'install', ], 'configure_hook': template_hook_factory('config-local.mk', '%(topsrcdir)s/config-local.mk'), 'prepare_hook': None }), ] env.CFG_DATABASE_HOST = 'localhost' env.CFG_DATABASE_PORT = 3306 env.CFG_INVENIO_ADMIN = '*****@*****.**' # If no database or username is specified a new database with the same # name as the virtualenv will be created. Also a user with the env username # will be created #env.CFG_DATABASE_NAME = 'invenio' #env.CFG_DATABASE_USER = '******' # Set default Invenio branch env = env_override(env, 'invenio', invenio, override={}) return env