Skip to content

Instantly share code, notes, and snippets.

@henchc
Created July 14, 2019 21:07
Show Gist options
  • Save henchc/456c2da665746fc6c15c6b3c18fa8c28 to your computer and use it in GitHub Desktop.
Save henchc/456c2da665746fc6c15c6b3c18fa8c28 to your computer and use it in GitHub Desktop.
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