##// END OF EJS Templates
updates to release scripts...
MinRK -
Show More
@@ -6,17 +6,6 b' import os'
6
6
7 from toollib import *
7 from toollib import *
8
8
9 # The windows builds are fairly painful to set up on a posix system via wine,
10 # so by default we've disabled them and we just build the windows installers
11 # separately in a true Windows VM.
12 do_windows = False
13
14 # Egg building is also disabled by default. They serve no real purpose in
15 # python2, and getting a setupegg.py file that has valid python2/3 syntax is a
16 # pain in the ass. Since the python devs were too stubborn to leave execfile()
17 # in place in python3, then we just don't build eggs.
18 do_eggs = False
19
20 # 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
21 ipdir = get_ipdir()
10 ipdir = get_ipdir()
22 cd(ipdir)
11 cd(ipdir)
@@ -35,15 +24,4 b" for d in ['build', 'dist', pjoin('docs', 'build'), pjoin('docs', 'dist'),"
35
24
36 # Build source and binary distros
25 # Build source and binary distros
37 sh(sdists)
26 sh(sdists)
38
27 sh(wheels)
39 # Build eggs
40 if do_eggs:
41 sh(eggs)
42
43 if do_windows:
44 map(sh, win_builds)
45 # Change name so retarded Vista runs the installer correctly
46 sh("rename 's/linux-i686/win32/' dist/*.exe")
47 sh("rename 's/linux-x86_64/win32/' dist/*.exe")
48 # exe files aren't really executable under *nix.
49 sh("chmod -x dist/*.exe")
@@ -101,11 +101,11 b' def report(issues, show_urls=False):'
101 if show_urls:
101 if show_urls:
102 for i in issues:
102 for i in issues:
103 role = 'ghpull' if 'merged_at' in i else 'ghissue'
103 role = 'ghpull' if 'merged_at' in i else 'ghissue'
104 print('* :%s:`%d`: %s' % (role, i['number'],
104 print(u'* :%s:`%d`: %s' % (role, i['number'],
105 i['title'].replace('`', '``').encode('utf-8')))
105 i['title'].replace(u'`', u'``')))
106 else:
106 else:
107 for i in issues:
107 for i in issues:
108 print('* %d: %s' % (i['number'], i['title'].replace('`', '``').encode('utf-8')))
108 print(u'* %d: %s' % (i['number'], i['title'].replace(u'`', u'``')))
109
109
110 #-----------------------------------------------------------------------------
110 #-----------------------------------------------------------------------------
111 # Main script
111 # Main script
@@ -15,6 +15,8 b" distdir = pjoin(ipdir, 'dist')"
15
15
16 # Where I keep static backups of each release
16 # Where I keep static backups of each release
17 ipbackupdir = os.path.expanduser('~/ipython/backup')
17 ipbackupdir = os.path.expanduser('~/ipython/backup')
18 if not os.path.exists(ipbackupdir):
19 os.makedirs(ipbackupdir)
18
20
19 # Start in main IPython dir
21 # Start in main IPython dir
20 cd(ipdir)
22 cd(ipdir)
@@ -53,14 +55,14 b" sh('./setup.py register')"
53
55
54 # Upload all files
56 # Upload all files
55 sh(sdists + ' upload')
57 sh(sdists + ' upload')
56 for py in ('2.7', '3.3'):
58 for py in ('2.7', '3.4'):
57 sh('python%s setupegg.py bdist_wheel' % py)
59 sh('python%s setupegg.py bdist_wheel' % py)
58
60
59 cd(distdir)
61 cd(distdir)
60 print( 'Uploading distribution files...')
62 print( 'Uploading distribution files...')
61
63
62 for fname in os.listdir('.'):
64 for fname in os.listdir('.'):
63 # GitHub doesn't have an API for uploads at the moment
65 # TODO: update to GitHub releases API
64 continue
66 continue
65 print('uploading %s to GitHub' % fname)
67 print('uploading %s to GitHub' % fname)
66 desc = "IPython %s source distribution" % version
68 desc = "IPython %s source distribution" % version
@@ -20,24 +20,8 b" archive = '%s:%s' % (archive_user, archive_dir)"
20 # Build commands
20 # Build commands
21 # Source dists
21 # Source dists
22 sdists = './setup.py sdist --formats=gztar,zip'
22 sdists = './setup.py sdist --formats=gztar,zip'
23 # Eggs
23 # Binary dists
24 eggs = './setupegg.py bdist_egg'
24 wheels = './setupegg.py bdist_wheel'
25
26 # Windows builds.
27 # We do them separately, so that the extra Windows scripts don't get pulled
28 # into Unix builds (setup.py has code which checks for bdist_wininst). Note
29 # that the install scripts args are added to the main distutils call in
30 # setup.py, so they don't need to be passed here.
31 #
32 # The Windows 64-bit installer can't be built by a Linux/Mac Python because ofa
33 # bug in distutils: http://bugs.python.org/issue6792.
34 # So we have to build it with a wine-installed native Windows Python...
35 win_builds = ["python setup.py bdist_wininst "
36 "--install-script=ipython_win_post_install.py",
37 r"%s/.wine/dosdevices/c\:/Python32/python.exe setup.py build "
38 "--plat-name=win-amd64 bdist_wininst "
39 "--install-script=ipython_win_post_install.py" %
40 os.environ['HOME'] ]
41
25
42 # Utility functions
26 # Utility functions
43 def sh(cmd):
27 def sh(cmd):
1 NO CONTENT: file was removed
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now