##// END OF EJS Templates
Fix problem with rc_override....
Fix problem with rc_override. EmbeddedSphinxShell is instantiated at import time, this patch works around the issue.

File last commit:

r2118:ec9810f7
r2430:3e84e9f4
Show More
update_revnum.py
32 lines | 701 B | text/x-python | PythonLexer
ville
initialization (no svn history)
r988 #!/usr/bin/env python
Fernando Perez
Cleaned up release tools directory....
r2118 """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"""
ville
initialization (no svn history)
r988
import os
Fernando Perez
Cleaned up release tools directory....
r2118 import pprint
import re
ville
initialization (no svn history)
r988
Fernando Perez
Cleaned up release tools directory....
r2118 from toollib import *
ville
initialization (no svn history)
r988
Fernando Perez
Cleaned up release tools directory....
r2118 if __name__ == '__main__':
ver = version_info()
Ville M. Vainio
version string in Release contains bzr branch if not 'ipython'
r1072
Fernando Perez
Cleaned up release tools directory....
r2118 pprint.pprint(ver)
ville
initialization (no svn history)
r988
Fernando Perez
Cleaned up release tools directory....
r2118 rfile = open('../IPython/Release.py','rb').read()
newcont = re.sub(r'revision\s*=.*',
"revision = '%s'" % ver['revno'],
rfile)
Ville M. Vainio
version string in Release contains bzr branch if not 'ipython'
r1072
Fernando Perez
Cleaned up release tools directory....
r2118 newcont = re.sub(r'^branch\s*=[^=].*',
"branch = '%s'" % ver['branch-nick'],
newcont)
Ville M. Vainio
version string in Release contains bzr branch if not 'ipython'
r1072
Fernando Perez
Cleaned up release tools directory....
r2118 f = open('../IPython/Release.py','wb')
f.write(newcont)
f.close()