##// END OF EJS Templates
Last minute fixes to release script.
Fernando Perez -
Show More
@@ -8,31 +8,39 b' from toollib import *'
8 8
9 9 # Get main ipython dir, this will raise if it doesn't pass some checks
10 10 ipdir = get_ipdir()
11 tooldir = pjoin(ipdir,'tools')
12 distdir = pjoin(ipdir,'dist')
13 # Where I keep static backups of each release
14 ipbackupdir = os.path.expanduser('~/ipython/backup')
15
16 # Start in main IPython dir
11 17 cd(ipdir)
12 18
13 19 # Load release info
14 20 execfile(pjoin('IPython','Release.py'))
15 21
16 # Where I keep static backups of each release
17 ipbackupdir = os.path.expanduser('~/ipython/backup')
18
19 22 print
20 23 print "Releasing IPython version $version"
21 24 print "=================================="
25 print
26 print 'Source IPython directory:', ipdir
27 print
22 28
23 # Perform local backup
29 # Perform local backup, go to tools dir to run it.
30 cd(tooldir)
24 31 c('./make_tarball.py')
25 32 c('mv ipython-*.tgz %s' % ipbackupdir)
26 33
27 34 # Build release files
28 c('./mkrel.py %s' % ipdir)
35 c('./build_release %s' % ipdir)
29 36
30 37 # Register with the Python Package Index (PyPI)
31 38 print "Registering with PyPI..."
39 cd(ipdir)
32 40 c('./setup.py register')
33 41
34 42 # Upload all files
35 cd('dist')
43 cd(distdir)
36 44 print "Uploading distribution files..."
37 45 c('scp * ipython@ipython.scipy.org:www/dist/')
38 46
General Comments 0
You need to be logged in to leave comments. Login now