aboutsummaryrefslogtreecommitdiffstats
path: root/tools/finalize.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2020-04-06 16:33:15 -0400
committerJason R. Coombs <jaraco@jaraco.com>2020-04-06 16:34:56 -0400
commit03b92ca154951f16851e75b01b78b9127dad742f (patch)
tree0deea81ff4c394371e1eedab80fe85550d1331ce /tools/finalize.py
parent3aeec3f0e989516e9229d9a75f5a038929dee6a6 (diff)
downloadexternal_python_setuptools-03b92ca154951f16851e75b01b78b9127dad742f.tar.gz
external_python_setuptools-03b92ca154951f16851e75b01b78b9127dad742f.tar.bz2
external_python_setuptools-03b92ca154951f16851e75b01b78b9127dad742f.zip
Protect against situation where the Git user e-mail is not configured. Ref #2057.
Diffstat (limited to 'tools/finalize.py')
-rw-r--r--tools/finalize.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/finalize.py b/tools/finalize.py
index 3b66341a..5f284568 100644
--- a/tools/finalize.py
+++ b/tools/finalize.py
@@ -53,7 +53,15 @@ def bump_version():
subprocess.check_call(cmd)
+def ensure_config():
+ """
+ Double-check that Git has an e-mail configured.
+ """
+ subprocess.check_output(['git', 'config', 'user.email'])
+
+
if __name__ == '__main__':
print("Cutting release at", get_version())
+ ensure_config()
update_changelog()
bump_version()