Show More
@@ -8,31 +8,39 b' from toollib import *' | |||||
8 |
|
8 | |||
9 | # Get main ipython dir, this will raise if it doesn't pass some checks |
|
9 | # Get main ipython dir, this will raise if it doesn't pass some checks | |
10 | ipdir = get_ipdir() |
|
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 | cd(ipdir) |
|
17 | cd(ipdir) | |
12 |
|
18 | |||
13 | # Load release info |
|
19 | # Load release info | |
14 | execfile(pjoin('IPython','Release.py')) |
|
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 | |||
20 | print "Releasing IPython version $version" |
|
23 | print "Releasing IPython version $version" | |
21 | print "==================================" |
|
24 | print "==================================" | |
|
25 | ||||
|
26 | print 'Source IPython directory:', ipdir | |||
|
27 | ||||
22 |
|
28 | |||
23 | # Perform local backup |
|
29 | # Perform local backup, go to tools dir to run it. | |
|
30 | cd(tooldir) | |||
24 | c('./make_tarball.py') |
|
31 | c('./make_tarball.py') | |
25 | c('mv ipython-*.tgz %s' % ipbackupdir) |
|
32 | c('mv ipython-*.tgz %s' % ipbackupdir) | |
26 |
|
33 | |||
27 | # Build release files |
|
34 | # Build release files | |
28 |
c('./ |
|
35 | c('./build_release %s' % ipdir) | |
29 |
|
36 | |||
30 | # Register with the Python Package Index (PyPI) |
|
37 | # Register with the Python Package Index (PyPI) | |
31 | print "Registering with PyPI..." |
|
38 | print "Registering with PyPI..." | |
|
39 | cd(ipdir) | |||
32 | c('./setup.py register') |
|
40 | c('./setup.py register') | |
33 |
|
41 | |||
34 | # Upload all files |
|
42 | # Upload all files | |
35 |
cd( |
|
43 | cd(distdir) | |
36 | print "Uploading distribution files..." |
|
44 | print "Uploading distribution files..." | |
37 | c('scp * ipython@ipython.scipy.org:www/dist/') |
|
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