Show More
@@ -51,17 +51,19 b" if 'upload' not in sys.argv:" | |||
|
51 | 51 | sys.exit(0) |
|
52 | 52 | |
|
53 | 53 | # Register with the Python Package Index (PyPI) |
|
54 | print( 'Registering with PyPI...') | |
|
54 | print( 'Not Registering with PyPI, registering with setup.py is insecure as communication is not encrypted') | |
|
55 | 55 | cd(ipdir) |
|
56 | sh('./setup.py register') | |
|
56 | # sh('./setup.py register') | |
|
57 | 57 | |
|
58 | 58 | # Upload all files |
|
59 |
sh(sdists |
|
|
59 | sh(sdists) | |
|
60 | 60 | for py in ('2.7', '3.4'): |
|
61 |
sh('python%s setupegg.py bdist_wheel |
|
|
61 | sh('python%s setupegg.py bdist_wheel' % py) | |
|
62 | ||
|
63 | print('Will not upload with setuptools as upload connection is insecure. Please use `twine upload dist/*` to upload the files to PyPI') | |
|
62 | 64 | |
|
63 | 65 | cd(distdir) |
|
64 | print( 'Uploading distribution files...') | |
|
66 | print( 'Uploading distribution files to GitHub...') | |
|
65 | 67 | |
|
66 | 68 | for fname in os.listdir('.'): |
|
67 | 69 | # TODO: update to GitHub releases API |
@@ -71,6 +73,7 b" for fname in os.listdir('.'):" | |||
|
71 | 73 | post_download("ipython/ipython", fname, description=desc) |
|
72 | 74 | |
|
73 | 75 | # Make target dir if it doesn't exist |
|
76 | print('Uploading IPython to backup site.') | |
|
74 | 77 | sh('ssh %s "mkdir -p %s/release/%s" ' % (archive_user, archive_dir, version)) |
|
75 | 78 | sh('scp * %s' % release_site) |
|
76 | 79 |
General Comments 0
You need to be logged in to leave comments.
Login now