Skip to content

Commit

Permalink
conda channels conf type
Browse files Browse the repository at this point in the history
  • Loading branch information
dsavchenko committed Mar 15, 2024
1 parent 2a6d777 commit cdb5e94
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion odabot/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import click
from dynaconf import Dynaconf
from dynaconf.vendor.box import BoxList

logger = logging.getLogger()

Expand Down Expand Up @@ -684,7 +685,11 @@ def make_galaxy_tools(obj, dry_run, loop, force, pattern):
git_name = obj['settings'].get('nb2galaxy.git_identity.name', 'ODA bot')
git_email = obj['settings'].get('nb2galaxy.git_identity.email', '[email protected]')
git_credentials = obj['settings'].get('nb2galaxy.git_credentials', os.path.join(os.environ.get('HOME', '/'), '.git-credentials'))
available_channels = obj['settings'].get('nb2galaxy.conda_channels', ['conda-forge', 'denysos'])
available_channels = obj['settings'].get('nb2galaxy.conda_channels', ['conda-forge'])
if isinstance(available_channels, BoxList):
available_channels = available_channels.to_list()
elif isinstance(available_channels, str):
available_channels = available_channels.split(',')

repo_cache_dir = os.path.abspath(repo_cache_dir)
state_storage = os.path.abspath(state_storage)
Expand Down

0 comments on commit cdb5e94

Please sign in to comment.