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

Merge

--HG--
branch : distribute
extra : rebase_source : 6b1741a2e6a320d037d9aa58f605407f0e4f866e
parents 3ab400cd c814c26d
......@@ -24,6 +24,7 @@ except Exception:
VERSION = '0.6.40'
PACKAGE_INDEX = 'https://pypi.python.org/pypi'
PACKAGE_INDEX = 'https://pypi.python.org/pypi'
def get_next_version():
digits = map(int, VERSION.split('.'))
......@@ -118,8 +119,13 @@ 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', '-r', PACKAGE_INDEX]
cmd = [
sys.executable, 'setup.py', '-q',
'egg_info', '-RD', '-b', '',
'sdist',
'register', '-r', PACKAGE_INDEX,
'upload', '-r', PACKAGE_INDEX,
]
if has_docs:
cmd.extend(['upload_docs', '-r', PACKAGE_INDEX])
subprocess.check_call(cmd)
......
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