Commit aa53649f authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

RF: python urllib doesn't support http://username:password@...

parent b99cb2bf
......@@ -39,11 +39,13 @@ def need_internal_channel(release_info, packages):
internal FSL conda channel.
"""
# the internal channel contains ${FSLCONDA_USERNAME}
# and ${FSLCONDA_PASSWORD}, which are assumed to be
# set in the CI environment
channel_url = op.expandvars(release_info['internal_channel'])
internal_packages = get_channel_packages(channel_url)
username = os.environ['FSLCONDA_USERNAME']
password = os.environ['FSLCONDA_PASSWORD']
channel_url = release_info['internal_channel']
channel_url = channel_url.replace('${FSLCONDA_USERNAME}:${FSLCONDA_PASSWORD}@', '')
internal_packages = get_channel_packages(channel_url,
username=username,
password=password)
internal_packages = [p.name for p in internal_packages]
packages = [p.split()[0] for p in packages]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment