aboutsummaryrefslogtreecommitdiffstats
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
commit370e8115107724f358c753cfd7395586c7eb4081 (patch)
treed05e8f99dc02952a41ea8a1ae92821d23bc4a660 /release.py
parentfae83a533275d9c6e21d2ede79aaa942ceacd5dd (diff)
downloadexternal_python_setuptools-370e8115107724f358c753cfd7395586c7eb4081.tar.gz
external_python_setuptools-370e8115107724f358c753cfd7395586c7eb4081.tar.bz2
external_python_setuptools-370e8115107724f358c753cfd7395586c7eb4081.zip
#34: Update the 'bootstrap' bookmark as part of the release process.
--HG-- extra : rebase_source : 549f10a7b864152871edccf3d0f9e0bf57fb8bf0
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)