Skip to content
Snippets Groups Projects
Commit d6867fbd authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Fix bob release script

parent fa942e2f
No related branches found
No related tags found
No related merge requests found
...@@ -170,7 +170,8 @@ def update_meta(meta_path, package): ...@@ -170,7 +170,8 @@ def update_meta(meta_path, package):
doc = doc.replace('Modified BSD License (3-clause)', 'BSD 3-Clause') doc = doc.replace('Modified BSD License (3-clause)', 'BSD 3-Clause')
if package == 'bob': if package == 'bob':
requrl = 'https://gitlab.idiap.ch/bob/bob/raw/master/requirements.txt' requrl = 'https://gitlab.idiap.ch/bob/bob/blob/v{}/requirements.txt'
requrl = requrl.format(stable_version)
remote = requests.get(requrl) remote = requests.get(requrl)
req = remote.content.decode() req = remote.content.decode()
req = '\n - '.join(req.replace('== ', '==').strip().split('\n')) req = '\n - '.join(req.replace('== ', '==').strip().split('\n'))
...@@ -178,9 +179,10 @@ def update_meta(meta_path, package): ...@@ -178,9 +179,10 @@ def update_meta(meta_path, package):
te_id = doc.find('test:\n', be_id) te_id = doc.find('test:\n', be_id)
template = '''{req} template = '''{req}
run: run:
- python - python
- {req} - numpy x.x
- {req}
'''.format(req=req) '''.format(req=req)
doc = doc[:be_id] + template + doc[te_id:] doc = doc[:be_id] + template + doc[te_id:]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment