Created
July 14, 2019 21:07
-
-
Save henchc/456c2da665746fc6c15c6b3c18fa8c28 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
elif repo == 'binderhub': | |
with open('mybinder/requirements.yaml', 'r') as f: | |
requirements_yaml = f.read() | |
updated_yaml = requirements_yaml.replace( | |
"version: 0.2.0-{}".format(commit_info[upgrade]['live']), | |
"version: 0.2.0-{}".format(commit_info[upgrade]['latest'])) | |
fname = 'mybinder/requirements.yaml' | |
with open(fname, 'w') as f: | |
f.write(updated_yaml) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment