Skip to content

Commit

Permalink
Now that bootstrap script automatically installs the latest published…
Browse files Browse the repository at this point in the history
… version, it's no longer necessary to track the _current_ bootstrap version with a bookmark.
  • Loading branch information
jaraco committed Dec 16, 2015
1 parent 1542dc1 commit 89a239d
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions release.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,12 @@
"""

import os
import subprocess

import pkg_resources

pkg_resources.require('jaraco.packaging>=2.0')
pkg_resources.require('wheel')


def before_upload():
BootstrapBookmark.add()


def after_push():
BootstrapBookmark.push()

files_with_versions = 'setuptools/version.py',

# bdist_wheel must be included or pip will break
Expand All @@ -27,22 +18,3 @@ def after_push():
test_info = "Travis-CI tests: http://travis-ci.org/#!/jaraco/setuptools"

os.environ["SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES"] = "1"

class BootstrapBookmark:
name = 'bootstrap'

@classmethod
def add(cls):
cmd = ['hg', 'bookmark', '-i', cls.name, '-f']
subprocess.Popen(cmd)

@classmethod
def push(cls):
"""
Push the bootstrap bookmark
"""
push_command = ['hg', 'push', '-B', cls.name]
# don't use check_call here because mercurial will return a non-zero
# code even if it succeeds at pushing the bookmark (because there are
# no changesets to be pushed). !dm mercurial
subprocess.call(push_command)

0 comments on commit 89a239d

Please sign in to comment.