Commit de713986 authored by Jason R. Coombs's avatar Jason R. Coombs

Encapsulate bootstrap bookmark functionality

parent 271dfce0
...@@ -13,10 +13,10 @@ pkg_resources.require('jaraco.packaging>=2.0') ...@@ -13,10 +13,10 @@ pkg_resources.require('jaraco.packaging>=2.0')
def before_upload(): def before_upload():
_linkify('CHANGES.txt', 'CHANGES (links).txt') _linkify('CHANGES.txt', 'CHANGES (links).txt')
_add_bootstrap_bookmark() BootstrapBookmark.add()
def after_push(): def after_push():
_push_bootstrap_bookmark() BootstrapBookmark.push()
files_with_versions = ( files_with_versions = (
'ez_setup.py', 'setuptools/version.py', 'ez_setup.py', 'setuptools/version.py',
...@@ -61,12 +61,14 @@ def replacer(match): ...@@ -61,12 +61,14 @@ def replacer(match):
url = issue_urls[key].format(**match_dict) url = issue_urls[key].format(**match_dict)
return "`{text} <{url}>`_".format(text=text, url=url) return "`{text} <{url}>`_".format(text=text, url=url)
class BootstrapBookmark:
def _add_bootstrap_bookmark(): @staticmethod
def add():
cmd = ['hg', 'bookmark', '-i', 'bootstrap', '-f'] cmd = ['hg', 'bookmark', '-i', 'bootstrap', '-f']
subprocess.Popen(cmd) subprocess.Popen(cmd)
def _push_bootstrap_bookmark(): @staticmethod
def push():
""" """
Push the bootstrap bookmark Push the bootstrap bookmark
""" """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment