##// END OF EJS Templates
Update revnum; ready for testing, will upload and send to the dev list....
Update revnum; ready for testing, will upload and send to the dev list. Docs have been added, this is close to a reasonable RC for 0.11. As of this revision, we're down to 0 errors on linux and 1 on windows (that appears twice). The windows error is tracked here: https://bugs.launchpad.net/ipython/+bug/506839

File last commit:

r2146:f57d8b10 merge
r2468:6e6a85ae
Show More
update_revnum.py
32 lines | 711 B | text/x-python | PythonLexer
#!/usr/bin/env python
"""Change the revision number in release.py
This edits in-place release.py to update the revision number from bzr info.
Usage:
./update_revnum.py"""
import os
import pprint
import re
from toollib import *
if __name__ == '__main__':
ver = version_info()
pprint.pprint(ver)
rfile = open('../IPython/core/release.py','rb').read()
newcont = re.sub(r'revision\s*=.*',
"revision = '%s'" % ver['revno'],
rfile)
newcont = re.sub(r'^branch\s*=[^=].*',
"branch = '%s'" % ver['branch-nick'],
newcont)
f = open('../IPython/core/release.py','wb')
f.write(newcont)
f.close()