Show More
@@ -105,12 +105,10 b" author_email = 'ipython-dev@scipy.org'" | |||
|
105 | 105 | |
|
106 | 106 | url = 'http://ipython.org' |
|
107 | 107 | |
|
108 | download_url = 'https://github.com/ipython/ipython/downloads' | |
|
109 | 108 | |
|
110 |
platforms = ['Linux','Mac OSX','Windows |
|
|
109 | platforms = ['Linux','Mac OSX','Windows'] | |
|
111 | 110 | |
|
112 |
keywords = ['Interactive','Interpreter','Shell',' |
|
|
113 | 'Web-based computing', 'Qt console', 'Embedding'] | |
|
111 | keywords = ['Interactive','Interpreter','Shell', 'Embedding'] | |
|
114 | 112 | |
|
115 | 113 | classifiers = [ |
|
116 | 114 | 'Framework :: IPython', |
@@ -80,7 +80,6 b' setup_args = dict(' | |||
|
80 | 80 | author = author, |
|
81 | 81 | author_email = author_email, |
|
82 | 82 | url = url, |
|
83 | download_url = download_url, | |
|
84 | 83 | license = license, |
|
85 | 84 | platforms = platforms, |
|
86 | 85 | keywords = keywords, |
@@ -15,7 +15,7 b' cd(ipdir)' | |||
|
15 | 15 | execfile(pjoin('IPython', 'core', 'release.py'), globals()) |
|
16 | 16 | |
|
17 | 17 | # Check that everything compiles |
|
18 | compile_tree() | |
|
18 | compile_tree('*') | |
|
19 | 19 | |
|
20 | 20 | # Cleanup |
|
21 | 21 | for d in ['build', 'dist', pjoin('docs', 'build'), pjoin('docs', 'dist'), |
@@ -8,7 +8,7 b' from __future__ import print_function' | |||
|
8 | 8 | import os |
|
9 | 9 | import sys |
|
10 | 10 | |
|
11 |
from toollib import (get_ipdir, pjoin, cd, execfile, |
|
|
11 | from toollib import (get_ipdir, pjoin, cd, execfile, sh, archive, | |
|
12 | 12 | sdists, archive_user, archive_dir) |
|
13 | 13 | from gh_api import post_download |
|
14 | 14 | |
@@ -26,6 +26,7 b' if not os.path.exists(ipbackupdir):' | |||
|
26 | 26 | cd(ipdir) |
|
27 | 27 | |
|
28 | 28 | # Load release info |
|
29 | version = None | |
|
29 | 30 | execfile(pjoin('IPython','core','release.py'), globals()) |
|
30 | 31 | |
|
31 | 32 | # Build site addresses for file uploads |
@@ -50,18 +51,19 b" sh('mv ipython-*.tgz %s' % ipbackupdir)" | |||
|
50 | 51 | # Build release files |
|
51 | 52 | sh('./build_release %s' % ipdir) |
|
52 | 53 | |
|
53 | if 'upload' not in sys.argv: | |
|
54 | print("`./release upload` to register and release") | |
|
55 | sys.exit(0) | |
|
56 | ||
|
57 | 54 | # Not Registering with PyPI, registering with setup.py is insecure as communication is not encrypted |
|
58 | 55 | cd(ipdir) |
|
59 | 56 | |
|
60 | 57 | # Upload all files |
|
61 | 58 | sh(sdists) |
|
62 |
for py in ('2 |
|
|
59 | for py in ('2', '3'): | |
|
63 | 60 | sh('python%s setupegg.py bdist_wheel' % py) |
|
64 | 61 | |
|
62 | if 'upload' not in sys.argv: | |
|
63 | print("`./release upload` to register and release") | |
|
64 | sys.exit(0) | |
|
65 | ||
|
66 | ||
|
65 | 67 | print('Will not upload with setuptools as upload connection is insecure. Please use `twine upload dist/*` to upload the files to PyPI') |
|
66 | 68 | |
|
67 | 69 | cd(distdir) |
@@ -48,9 +48,9 b' def get_ipdir():' | |||
|
48 | 48 | return ipdir |
|
49 | 49 | |
|
50 | 50 | |
|
51 | def compile_tree(): | |
|
51 | def compile_tree(folder='.'): | |
|
52 | 52 | """Compile all Python files below current directory.""" |
|
53 |
stat = os.system('python -m compileall |
|
|
53 | stat = os.system('python -m compileall {}'.format(folder)) | |
|
54 | 54 | if stat: |
|
55 | 55 | msg = '*** ERROR: Some Python files in tree do NOT compile! ***\n' |
|
56 | 56 | msg += 'See messages above for the actual file that produced it.\n' |
General Comments 0
You need to be logged in to leave comments.
Login now