aboutsummaryrefslogtreecommitdiffstats
path: root/release.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2012-03-09 23:13:28 -0800
committerJason R. Coombs <jaraco@jaraco.com>2012-03-09 23:13:28 -0800
commitcaa4c83e9f2ac9a69457cb1b69b4b09215ac0a09 (patch)
tree663f0911763841efb82f8cbcb780754b4f81bacd /release.py
parent887e5bd499ca29f1ad721e593827ac18f4db3191 (diff)
downloadexternal_python_setuptools-caa4c83e9f2ac9a69457cb1b69b4b09215ac0a09.tar.gz
external_python_setuptools-caa4c83e9f2ac9a69457cb1b69b4b09215ac0a09.tar.bz2
external_python_setuptools-caa4c83e9f2ac9a69457cb1b69b4b09215ac0a09.zip
Fix release script to not include deleted files.
--HG-- branch : distribute extra : rebase_source : 354e36575fde2a29d731ac8880f58a627f13d27b
Diffstat (limited to 'release.py')
-rw-r--r--release.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/release.py b/release.py
index 2aab1344..c16fd9d5 100644
--- a/release.py
+++ b/release.py
@@ -12,7 +12,7 @@ import shutil
import os
import sys
-VERSION='0.6.25'
+VERSION = '0.6.25'
def get_next_version():
digits = map(int, VERSION.split('.'))
@@ -21,9 +21,10 @@ def get_next_version():
NEXT_VERSION = get_next_version()
+files_with_versions = ('docs/conf.py', 'setup.py', 'release.py',
+ 'README.txt', 'distribute_setup.py')
+
def bump_versions():
- files_with_versions = ('docs/conf.py', 'setup.py', 'release.py',
- 'release.sh', 'README.txt', 'distribute_setup.py')
list(map(bump_version, files_with_versions))
def bump_version(filename):
@@ -33,6 +34,8 @@ def bump_version(filename):
f.writelines(lines)
def do_release():
+ assert all(map(os.path.exists, files_with_versions)), (
+ "Expected file(s) missing")
res = raw_input('Have you read through the SCM changelog and '
'confirmed the changelog is current for releasing {VERSION}? '
.format(**globals()))