From aaafe0c9319994852b30433106c65897411d6271 2009-08-05 01:28:18 From: Fernando Perez Date: 2009-08-05 01:28:18 Subject: [PATCH] Last minute fixes to release script. --- diff --git a/tools/release b/tools/release index 557f952..f0fe09b 100755 --- a/tools/release +++ b/tools/release @@ -8,31 +8,39 @@ from toollib import * # Get main ipython dir, this will raise if it doesn't pass some checks ipdir = get_ipdir() +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 cd(ipdir) # Load release info execfile(pjoin('IPython','Release.py')) -# Where I keep static backups of each release -ipbackupdir = os.path.expanduser('~/ipython/backup') - print print "Releasing IPython version $version" print "==================================" +print +print 'Source IPython directory:', ipdir +print -# Perform local backup +# Perform local backup, go to tools dir to run it. +cd(tooldir) c('./make_tarball.py') c('mv ipython-*.tgz %s' % ipbackupdir) # Build release files -c('./mkrel.py %s' % ipdir) +c('./build_release %s' % ipdir) # Register with the Python Package Index (PyPI) print "Registering with PyPI..." +cd(ipdir) c('./setup.py register') # Upload all files -cd('dist') +cd(distdir) print "Uploading distribution files..." c('scp * ipython@ipython.scipy.org:www/dist/')