Skip to content
Snippets Groups Projects
Commit 08b88229 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Merge branch 'removed-use-local-option' into 'master'

Removed use-local option

See merge request !68
parents 22ded188 a0aebba4
No related branches found
No related tags found
1 merge request!68Removed use-local option
Pipeline #31737 passed
......@@ -67,9 +67,6 @@ Examples:
@click.option('-X', '--stable/--no-stable', default=False,
help='Set this to **exclude** beta channels from your build - ' \
'notice this option has no effect if you also pass --condarc')
@click.option('-L', '--use-local/--no-use-local', default=False,
help='Set this to **include** the locally built packages on the search ' \
'list - notice this option has no effect if you also pass --condarc')
@click.option('-d', '--dry-run/--no-dry-run', default=False,
help='Only goes through the actions, but does not execute them ' \
'(combine with the verbosity flags - e.g. ``-vvv``) to enable ' \
......@@ -79,7 +76,7 @@ Examples:
@verbosity_option()
@bdt.raise_on_error
def build(recipe_dir, python, condarc, config, no_test, append_file,
server, group, private, stable, use_local, dry_run, ci):
server, group, private, stable, dry_run, ci):
"""Builds package through conda-build with stock configuration
This command wraps the execution of conda-build so that you use the same
......@@ -107,7 +104,7 @@ def build(recipe_dir, python, condarc, config, no_test, append_file,
condarc_options = yaml.load(f, Loader=yaml.FullLoader)
else:
# use default and add channels
all_channels = ['local'] if use_local else []
all_channels = []
all_channels += channels + ['defaults']
condarc_options = yaml.load(BASE_CONDARC, Loader=yaml.FullLoader)
logger.info('Using the following channels during build:\n - %s',
......
......@@ -342,7 +342,6 @@ def base_build(order, group, python, dry_run):
bootstrap=bootstrap,
server=SERVER,
intranet=True,
use_local=True,
group=group,
recipe_dir=recipe,
conda_build_config=variants_file,
......@@ -408,7 +407,6 @@ def test(ctx, dry_run):
group=group,
private=(os.environ['CI_PROJECT_VISIBILITY'] != 'public'),
stable='CI_COMMIT_TAG' in os.environ,
use_local=False,
dry_run=dry_run,
ci=True,
)
......@@ -472,7 +470,6 @@ def build(ctx, dry_run):
group=group,
private=(os.environ['CI_PROJECT_VISIBILITY'] != 'public'),
stable='CI_COMMIT_TAG' in os.environ,
use_local=False,
dry_run=dry_run,
ci=True,
)
......@@ -603,7 +600,6 @@ def nightlies(ctx, order, dry_run):
group=group,
private=private,
stable=stable,
use_local=True,
dry_run=dry_run,
ci=True,
)
......
......@@ -58,9 +58,6 @@ Examples:
@click.option('-X', '--stable/--no-stable', default=False,
help='Set this to **exclude** beta channels from your build - ' \
'notice this option has no effect if you also pass --condarc')
@click.option('-L', '--use-local/--no-use-local', default=False,
help='Set this to **include** the locally built packages on the search ' \
'list - notice this option has no effect if you also pass --condarc')
@click.option('-d', '--dry-run/--no-dry-run', default=False,
help='Only goes through the actions, but does not execute them ' \
'(combine with the verbosity flags - e.g. ``-vvv``) to enable ' \
......@@ -69,8 +66,7 @@ Examples:
help='Use this flag to indicate the build will be running on the CI')
@verbosity_option()
@bdt.raise_on_error
def test(package, condarc, config, append_file, server, group, private, stable,
use_local, dry_run, ci):
def test(package, condarc, config, append_file, server, group, private, stable, dry_run, ci):
"""Tests (pre-built) package through conda-build with stock configuration
This command wraps the execution of conda-build so that you use the same
......@@ -96,7 +92,7 @@ def test(package, condarc, config, append_file, server, group, private, stable,
condarc_options = yaml.load(f, Loader=yaml.FullLoader)
else:
# use default and add channels
all_channels = ['local'] if use_local else []
all_channels = []
all_channels += channels + ['defaults']
condarc_options = yaml.load(BASE_CONDARC, Loader=yaml.FullLoader)
logger.info('Using the following channels during build:\n - %s',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment