##// END OF EJS Templates
Minor fix to release script.
Fernando Perez -
Show More
@@ -1,65 +1,64 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 from __future__ import print_function
7 7
8 8 from toollib import *
9 9
10 10 # Get main ipython dir, this will raise if it doesn't pass some checks
11 11 ipdir = get_ipdir()
12 12 tooldir = pjoin(ipdir, 'tools')
13 13 distdir = pjoin(ipdir, 'dist')
14 14
15 15 # Where I keep static backups of each release
16 16 ipbackupdir = os.path.expanduser('~/ipython/backup')
17 17
18 18 # Start in main IPython dir
19 19 cd(ipdir)
20 20
21 21 # Load release info
22 22 execfile(pjoin('IPython','core','release.py'))
23 23
24 24 # Build site addresses for file uploads
25 25 release_site = '%s/release/%s' % (archive, version)
26 26 backup_site = '%s/backup/' % archive
27 27
28 28 # Start actual release process
29 29 print()
30 30 print('Releasing IPython')
31 31 print('=================')
32 32 print()
33 33 print('Version:', version)
34 34 print()
35 35 print('Source IPython directory:', ipdir)
36 36 print()
37 37
38 38 # Perform local backup, go to tools dir to run it.
39 39 cd(tooldir)
40 40 sh('./make_tarball.py')
41 41 sh('mv ipython-*.tgz %s' % ipbackupdir)
42 42
43 43 # Build release files
44 44 sh('./build_release %s' % ipdir)
45 45
46 46 # Register with the Python Package Index (PyPI)
47 47 print( 'Registering with PyPI...')
48 48 cd(ipdir)
49 49 sh('./setup.py register')
50 50
51 51 # Upload all files
52 for cmd in [sdists, eggs] + win_builds:
53 sh(cmd + ' upload')
52 sh(sdists + ' upload')
54 53 cd(distdir)
55 54 print( 'Uploading distribution files...')
56 55
57 56 # Make target dir if it doesn't exist
58 57 sh('ssh %s "mkdir -p %s/release/%s" ' % (archive_user, archive_dir, version))
59 58 sh('scp * %s' % release_site)
60 59
61 60 print( 'Uploading backup files...')
62 61 cd(ipbackupdir)
63 62 sh('scp `ls -1tr *tgz | tail -1` %s' % backup_site)
64 63
65 64 print('Done!')
General Comments 0
You need to be logged in to leave comments. Login now