Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
conda
manifest-rules
Commits
aa53649f
Commit
aa53649f
authored
Jul 30, 2021
by
Paul McCarthy
🚵
Browse files
RF: python urllib doesn't support http://username:password@...
parent
b99cb2bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
manifest_rules/generate_environment_files.py
View file @
aa53649f
...
...
@@ -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
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment