Show More
@@ -102,7 +102,7 b" release is: ``1.3rc1``. Notice that there is no separator between the '3' and" | |||
|
102 | 102 | the 'r'. |
|
103 | 103 | |
|
104 | 104 | |
|
105 |
Commit the changes to release.py |
|
|
105 | Commit the changes to release.py:: | |
|
106 | 106 | |
|
107 | 107 | git commit -am "release $VERSION" |
|
108 | 108 | git push origin $BRANCH |
@@ -4,7 +4,7 b'' | |||
|
4 | 4 | import os |
|
5 | 5 | from shutil import rmtree |
|
6 | 6 | |
|
7 |
from toollib import sh, pjoin, get_ipdir, cd, |
|
|
7 | from toollib import sh, pjoin, get_ipdir, cd, execfile, sdists, buildwheels | |
|
8 | 8 | |
|
9 | 9 | def build_release(): |
|
10 | 10 | |
@@ -15,9 +15,6 b' def build_release():' | |||
|
15 | 15 | # Load release info |
|
16 | 16 | execfile(pjoin('IPython', 'core', 'release.py'), globals()) |
|
17 | 17 | |
|
18 | # Check that everything compiles | |
|
19 | compile_tree('*') | |
|
20 | ||
|
21 | 18 | # Cleanup |
|
22 | 19 | for d in ['build', 'dist', pjoin('docs', 'build'), pjoin('docs', 'dist'), |
|
23 | 20 | pjoin('docs', 'source', 'api', 'generated')]: |
@@ -49,17 +49,8 b' def get_ipdir():' | |||
|
49 | 49 | raise SystemExit('Invalid ipython directory: %s' % ipdir) |
|
50 | 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 | 52 | try: |
|
62 | execfile | |
|
53 | execfile = execfile | |
|
63 | 54 | except NameError: |
|
64 | 55 | def execfile(fname, globs, locs=None): |
|
65 | 56 | locs = locs or globs |
General Comments 0
You need to be logged in to leave comments.
Login now