def __init__(self, configuration_options): self._options = configuration_options self._hg = HgUtil('.') # if setup.cfg doesn't exist, we may create one. hg revert # won't delete the file so we need to know if we'll have to # later. self._setup_cfg_exists = os.path.exists('daemon/setup.cfg')
def snapshot(self, type='sdist', upload=False): repo = HgUtil('.') revision = repo.revision dev_tag = '-dev-%(revision)s' % dict(revision=revision) with SetupCfg([('egg_info', 'tag_build', dev_tag)]): self.make_release(type, upload)
def __init__(self, repository_path): self._path = repository_path self._hg = HgUtil(self._path)