diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2013-05-12 14:18:08 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2013-05-12 14:18:08 -0400 |
commit | c814c26df28f82dc18c3000a130e6b7c4a4b41f5 (patch) | |
tree | 5561dd775dfe949c699bcb4331014ed6225cfa3d /release.py | |
parent | 8aeb4633600f478ad3ff743b58df55d6c22cd2cf (diff) | |
download | external_python_setuptools-c814c26df28f82dc18c3000a130e6b7c4a4b41f5.tar.gz external_python_setuptools-c814c26df28f82dc18c3000a130e6b7c4a4b41f5.tar.bz2 external_python_setuptools-c814c26df28f82dc18c3000a130e6b7c4a4b41f5.zip |
Use HTTPS for uploading the distribution to PyPI.
--HG--
branch : distribute
extra : rebase_source : e80c6f51364bbc373c016479e4b9e3e11be2db97
Diffstat (limited to 'release.py')
-rw-r--r-- | release.py | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -23,6 +23,7 @@ except Exception: pass VERSION = '0.6.39' +PACKAGE_INDEX = 'https://pypi.python.org/pypi' def get_next_version(): digits = map(int, VERSION.split('.')) @@ -117,10 +118,15 @@ def do_release(): has_docs = build_docs() if os.path.isdir('./dist'): shutil.rmtree('./dist') - cmd = [sys.executable, 'setup.py', '-q', 'egg_info', '-RD', '-b', '', - 'sdist', 'register', 'upload'] + cmd = [ + sys.executable, 'setup.py', '-q', + 'egg_info', '-RD', '-b', '', + 'sdist', + 'register', '-r', PACKAGE_INDEX, + 'upload', '-r', PACKAGE_INDEX, + ] if has_docs: - cmd.append('upload_docs') + cmd.extend(['upload_docs', '-r', PACKAGE_INDEX]) subprocess.check_call(cmd) upload_bootstrap_script() |