uploads.py 文件源码

python
阅读 35 收藏 0 点赞 0 评论 0

项目:conda-concourse-ci 作者: conda 项目源码 文件源码
def get_upload_channels(upload_config_dir, subdir, channels=None):
    """thought here was to provide whatever channel you have set as an output also to be an input

    Killed this in favor of setting channels in condarc in the docker image.
    """
    configurations = load_yaml_config_dir(upload_config_dir)
    channels = channels or []

    for config in configurations:
        if 'token' in config:
            channels.append(config['user'])
        elif 'server' in config:
            channels.append(parse.urljoin('http://' + config['server'],
                            config['destination_path'].format(subdir=subdir)))
        else:
            channels.append(config['channel'])
    return channels
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号