##// END OF EJS Templates
Fix exception color problems in win32....
Fix exception color problems in win32. In all the recent work to have the test suite play nice with doctest of full ipython sessions, I inadvertedly started sending exceptions directly to sys.stderr. On windows we MUST go via Term.cerr, which uses pyreadline to handle color escapes, while sys.stderr just shows garbage on screen. As of this revision, the test suite passes fully on win32 and linux, and interactive use also seems OK on all fronts. We're getting closer to RC status...

File last commit:

r2146:f57d8b10 merge
r2459:e687d797
Show More
release
43 lines | 985 B | text/plain | TextLexer
#!/usr/bin/env python
"""IPython release script.
This should only be run at real release time.
"""
from toollib import *
# Get main ipython dir, this will raise if it doesn't pass some checks
ipdir = get_ipdir()
cd(ipdir)
# Load release info
execfile(pjoin('IPython','core','release.py'))
# Where I keep static backups of each release
ipbackupdir = os.path.expanduser('~/ipython/backup')
print
print "Releasing IPython version $version"
print "=================================="
# Perform local backup
c('./make_tarball.py')
c('mv ipython-*.tgz %s' % ipbackupdir)
# Build release files
c('./mkrel.py %s' % ipdir)
# Register with the Python Package Index (PyPI)
print "Registering with PyPI..."
c('./setup.py register')
# Upload all files
cd('dist')
print "Uploading distribution files..."
c('scp * ipython@ipython.scipy.org:www/dist/')
print "Uploading backup files..."
cd(ipbackupdir)
c('scp `ls -1tr *tgz | tail -1` ipython@ipython.scipy.org:www/backup/')
print "Done!"