summaryrefslogtreecommitdiff
path: root/release.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2013-07-19 23:57:00 -0400
committerJason R. Coombs <jaraco@jaraco.com>2013-07-19 23:57:00 -0400
commit2f5b6822ebc7ba7100a7cb40c3d18cc0216ee040 (patch)
treee8f467fafc3f130c8bc1d3149bfc3b09098f40f9 /release.py
parent05ab832f66bcf9feae4bfdbea09f421d053cffc2 (diff)
downloadpython-setuptools-bitbucket-2f5b6822ebc7ba7100a7cb40c3d18cc0216ee040.tar.gz
#34: Update the 'bootstrap' bookmark as part of the release process.
Diffstat (limited to 'release.py')
-rw-r--r--release.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/release.py b/release.py
index 659b4086..66350335 100644
--- a/release.py
+++ b/release.py
@@ -6,6 +6,7 @@ install jaraco.packaging and run 'python -m jaraco.packaging.release'
import re
import os
import itertools
+import subprocess
try:
zip_longest = itertools.zip_longest
@@ -14,6 +15,7 @@ except AttributeError:
def before_upload():
_linkify('CHANGES.txt', 'CHANGES (links).txt')
+ _add_bootstrap_bookmark()
files_with_versions = (
'ez_setup.py', 'setuptools/__init__.py',
@@ -55,3 +57,8 @@ def replacer(match):
if match_dict[key]:
url = issue_urls[key].format(**match_dict)
return "`{text} <{url}>`_".format(text=text, url=url)
+
+
+def _add_bootstrap_bookmark():
+ cmd = ['hg', 'bookmark', '-i', 'bootstrap', '-f']
+ subprocess.Popen(cmd)