Show More
@@ -1,43 +1,51 b'' | |||
|
1 | 1 | #!/usr/bin/env python |
|
2 | 2 | """IPython release script. |
|
3 | 3 | |
|
4 | 4 | This should only be run at real release time. |
|
5 | 5 | """ |
|
6 | 6 | |
|
7 | 7 | 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 | |
|
20 | 23 | print "Releasing IPython version $version" |
|
21 | 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 | 31 | c('./make_tarball.py') |
|
25 | 32 | c('mv ipython-*.tgz %s' % ipbackupdir) |
|
26 | 33 | |
|
27 | 34 | # Build release files |
|
28 |
c('./ |
|
|
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( |
|
|
43 | cd(distdir) | |
|
36 | 44 | print "Uploading distribution files..." |
|
37 | 45 | c('scp * ipython@ipython.scipy.org:www/dist/') |
|
38 | 46 | |
|
39 | 47 | print "Uploading backup files..." |
|
40 | 48 | cd(ipbackupdir) |
|
41 | 49 | c('scp `ls -1tr *tgz | tail -1` ipython@ipython.scipy.org:www/backup/') |
|
42 | 50 | |
|
43 | 51 | print "Done!" |
General Comments 0
You need to be logged in to leave comments.
Login now