aboutsummaryrefslogtreecommitdiffstats
path: root/release.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2011-10-14 12:33:56 -0400
committerJason R. Coombs <jaraco@jaraco.com>2011-10-14 12:33:56 -0400
commit6beba487c092be35525d63bbec3e3c45ae0bba04 (patch)
treee0a40c64924a7c98821737bcbaaf7f954cc76a24 /release.py
parenta119995b29457b2e4dffddd798faa320c257f32b (diff)
downloadexternal_python_setuptools-6beba487c092be35525d63bbec3e3c45ae0bba04.tar.gz
external_python_setuptools-6beba487c092be35525d63bbec3e3c45ae0bba04.tar.bz2
external_python_setuptools-6beba487c092be35525d63bbec3e3c45ae0bba04.zip
Updated bump message to use the bumped version, not the old version.
--HG-- branch : distribute extra : rebase_source : 9baf8490fa439e610c2cdb2b3e5db28920bdea1c
Diffstat (limited to 'release.py')
-rw-r--r--release.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/release.py b/release.py
index fc4831a2..466f5cda 100644
--- a/release.py
+++ b/release.py
@@ -19,6 +19,8 @@ def get_next_version():
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)
@@ -53,7 +55,8 @@ def do_release():
# 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'])