Commit c814c26d authored by Jason R. Coombs's avatar Jason R. Coombs

Use HTTPS for uploading the distribution to PyPI.

--HG--
branch : distribute
extra : rebase_source : e80c6f51364bbc373c016479e4b9e3e11be2db97
parent 8aeb4633
......@@ -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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment