diff options
Diffstat (limited to 'release.py')
-rw-r--r-- | release.py | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -12,13 +12,15 @@ import shutil import os import sys -VERSION='0.6.24' +VERSION='0.6.25' def get_next_version(): digits = map(int, VERSION.split('.')) digits[-1] += 1 return '.'.join(map(str, digits)) +NEXT_VERSION = get_next_version() + def bump_versions(): files_with_versions = ('docs/conf.py', 'setup.py', 'release.py', 'release.sh', 'README.txt', 'distribute_setup.py') @@ -26,7 +28,7 @@ def bump_versions(): def bump_version(filename): with open(filename, 'rb') as f: - lines = [line.replace(VERSION, get_next_version()) for line in f] + lines = [line.replace(VERSION, NEXT_VERSION) for line in f] with open(filename, 'wb') as f: f.writelines(lines) @@ -48,12 +50,13 @@ def do_release(): subprocess.check_call([sys.executable, 'setup.py', '-q', 'egg_info', '-RD', '-b', '', 'sdist', 'register', 'upload', 'upload_docs']) - upload_boostrap_script() + upload_bootstrap_script() # we just tagged the current version, bump for the next release. bump_versions() subprocess.check_call(['hg', 'ci', '-m', - 'Bumped to {VERSION} in preparation for next release.'.format(**globals())]) + 'Bumped to {NEXT_VERSION} in preparation for next ' + 'release.'.format(**globals())]) # push the changes subprocess.check_call(['hg', 'push']) |