##// END OF EJS Templates
Backport PR #9211: Release process tweaks...
Min RK -
Show More
@@ -102,7 +102,7 b" release is: ``1.3rc1``. Notice that there is no separator between the '3' and"
102 the 'r'.
102 the 'r'.
103
103
104
104
105 Commit the changes to release.py and jsversion::
105 Commit the changes to release.py::
106
106
107 git commit -am "release $VERSION"
107 git commit -am "release $VERSION"
108 git push origin $BRANCH
108 git push origin $BRANCH
@@ -4,7 +4,7 b''
4 import os
4 import os
5 from shutil import rmtree
5 from shutil import rmtree
6
6
7 from toollib import sh, pjoin, get_ipdir, cd, compile_tree, execfile, sdists, buildwheels
7 from toollib import sh, pjoin, get_ipdir, cd, execfile, sdists, buildwheels
8
8
9 def build_release():
9 def build_release():
10
10
@@ -15,9 +15,6 b' def build_release():'
15 # Load release info
15 # Load release info
16 execfile(pjoin('IPython', 'core', 'release.py'), globals())
16 execfile(pjoin('IPython', 'core', 'release.py'), globals())
17
17
18 # Check that everything compiles
19 compile_tree('*')
20
21 # Cleanup
18 # Cleanup
22 for d in ['build', 'dist', pjoin('docs', 'build'), pjoin('docs', 'dist'),
19 for d in ['build', 'dist', pjoin('docs', 'build'), pjoin('docs', 'dist'),
23 pjoin('docs', 'source', 'api', 'generated')]:
20 pjoin('docs', 'source', 'api', 'generated')]:
@@ -49,17 +49,8 b' def get_ipdir():'
49 raise SystemExit('Invalid ipython directory: %s' % ipdir)
49 raise SystemExit('Invalid ipython directory: %s' % ipdir)
50 return ipdir
50 return ipdir
51
51
52
53 def compile_tree(folder='.'):
54 """Compile all Python files below current directory."""
55 stat = os.system('python -m compileall {}'.format(folder))
56 if stat:
57 msg = '*** ERROR: Some Python files in tree do NOT compile! ***\n'
58 msg += 'See messages above for the actual file that produced it.\n'
59 raise SystemExit(msg)
60
61 try:
52 try:
62 execfile
53 execfile = execfile
63 except NameError:
54 except NameError:
64 def execfile(fname, globs, locs=None):
55 def execfile(fname, globs, locs=None):
65 locs = locs or globs
56 locs = locs or globs
General Comments 0
You need to be logged in to leave comments. Login now