##// END OF EJS Templates
Merge pull request #9191 from Carreau/insecure...
Min RK -
r22027:bfb620f9 merge
parent child Browse files
Show More
@@ -54,18 +54,18 b" if 'upload' not in sys.argv:"
54 print("`./release upload` to register and release")
54 print("`./release upload` to register and release")
55 sys.exit(0)
55 sys.exit(0)
56
56
57 # Register with the Python Package Index (PyPI)
57 # Not Registering with PyPI, registering with setup.py is insecure as communication is not encrypted
58 print( 'Registering with PyPI...')
59 cd(ipdir)
58 cd(ipdir)
60 sh('./setup.py register')
61
59
62 # Upload all files
60 # Upload all files
63 sh(sdists + ' upload')
61 sh(sdists)
64 for py in ('2.7', '3.4'):
62 for py in ('2.7', '3.4'):
65 sh('python%s setupegg.py bdist_wheel upload' % py)
63 sh('python%s setupegg.py bdist_wheel' % py)
64
65 print('Will not upload with setuptools as upload connection is insecure. Please use `twine upload dist/*` to upload the files to PyPI')
66
66
67 cd(distdir)
67 cd(distdir)
68 print( 'Uploading distribution files...')
68 print( 'Uploading distribution files to GitHub...')
69
69
70 for fname in os.listdir('.'):
70 for fname in os.listdir('.'):
71 # TODO: update to GitHub releases API
71 # TODO: update to GitHub releases API
@@ -75,6 +75,7 b" for fname in os.listdir('.'):"
75 post_download("ipython/ipython", fname, description=desc)
75 post_download("ipython/ipython", fname, description=desc)
76
76
77 # Make target dir if it doesn't exist
77 # Make target dir if it doesn't exist
78 print('Uploading IPython to backup site.')
78 sh('ssh %s "mkdir -p %s/release/%s" ' % (archive_user, archive_dir, version))
79 sh('ssh %s "mkdir -p %s/release/%s" ' % (archive_user, archive_dir, version))
79 sh('scp * %s' % release_site)
80 sh('scp * %s' % release_site)
80
81
@@ -4,7 +4,6 b' from __future__ import print_function'
4
4
5 # Library imports
5 # Library imports
6 import os
6 import os
7 import sys
8
7
9 # Useful shorthands
8 # Useful shorthands
10 pjoin = os.path.join
9 pjoin = os.path.join
General Comments 0
You need to be logged in to leave comments. Login now