##// END OF EJS Templates
Add recipe to log to with timestamps....
Add recipe to log to with timestamps. Original patch by Gökhan Sever, minor formatting fixes.

File last commit:

r2171:aaafe0c9
r2471:1b44dbf7
Show More
release
51 lines | 1.1 KiB | text/plain | TextLexer
Fernando Perez
Cleaned up release tools directory....
r2118 #!/usr/bin/env python
"""IPython release script.
Ville M. Vainio
crlf -> lf
r1032
Fernando Perez
Cleaned up release tools directory....
r2118 This should only be run at real release time.
"""
Ville M. Vainio
crlf -> lf
r1032
Fernando Perez
Cleaned up release tools directory....
r2118 from toollib import *
# Get main ipython dir, this will raise if it doesn't pass some checks
ipdir = get_ipdir()
Fernando Perez
Last minute fixes to release script.
r2171 tooldir = pjoin(ipdir,'tools')
distdir = pjoin(ipdir,'dist')
# Where I keep static backups of each release
ipbackupdir = os.path.expanduser('~/ipython/backup')
# Start in main IPython dir
Fernando Perez
Cleaned up release tools directory....
r2118 cd(ipdir)
# Load release info
execfile(pjoin('IPython','Release.py'))
print
print "Releasing IPython version $version"
print "=================================="
Fernando Perez
Last minute fixes to release script.
r2171 print
print 'Source IPython directory:', ipdir
print
Ville M. Vainio
crlf -> lf
r1032
Fernando Perez
Last minute fixes to release script.
r2171 # Perform local backup, go to tools dir to run it.
cd(tooldir)
Fernando Perez
Cleaned up release tools directory....
r2118 c('./make_tarball.py')
c('mv ipython-*.tgz %s' % ipbackupdir)
Ville M. Vainio
crlf -> lf
r1032
Fernando Perez
Tools cleanup in getting ready for 0.10.rc....
r2115 # Build release files
Fernando Perez
Last minute fixes to release script.
r2171 c('./build_release %s' % ipdir)
Ville M. Vainio
crlf -> lf
r1032
# Register with the Python Package Index (PyPI)
Fernando Perez
Cleaned up release tools directory....
r2118 print "Registering with PyPI..."
Fernando Perez
Last minute fixes to release script.
r2171 cd(ipdir)
Fernando Perez
Cleaned up release tools directory....
r2118 c('./setup.py register')
Ville M. Vainio
crlf -> lf
r1032
# Upload all files
Fernando Perez
Last minute fixes to release script.
r2171 cd(distdir)
Fernando Perez
Cleaned up release tools directory....
r2118 print "Uploading distribution files..."
c('scp * ipython@ipython.scipy.org:www/dist/')
Ville M. Vainio
crlf -> lf
r1032
Fernando Perez
Cleaned up release tools directory....
r2118 print "Uploading backup files..."
cd(ipbackupdir)
c('scp `ls -1tr *tgz | tail -1` ipython@ipython.scipy.org:www/backup/')
Ville M. Vainio
crlf -> lf
r1032
Fernando Perez
Cleaned up release tools directory....
r2118 print "Done!"