def release(self): from infi.projector.helper import assertions from infi.projector.helper.utils import release_version_in_git version_tag = self.replace_version_tag() if not self.arguments.get('--no-fetch', False): self.fetch_origin() assertions.assert_version_tag_for_release(version_tag) assertions.assert_develop_branch_on_top_of_master() assertions.assert_develop_and_master_not_behind_origin() version_tag_without_v = version_tag.lstrip('v') version_tag_with_v = 'v{}'.format(version_tag_without_v) release_version_in_git(version_tag_with_v, self.arguments.get("--keep-leftovers", False)) self.arguments['<version>'] = version_tag push_changes = not self.arguments.get("--no-push-changes", False) if push_changes: self.push_commits_and_tags() if not self.arguments.get('--no-upload', False) and len(self.arguments.get("--pypi-servers")) > 0: self.upload()
def release(self): from infi.projector.helper import assertions from infi.projector.helper.utils import release_version_in_git version_tag = self.replace_version_tag() if not self.arguments.get('--no-fetch', False): self.fetch_origin() assertions.assert_version_tag_for_release(version_tag) assertions.assert_develop_branch_on_top_of_master() assertions.assert_develop_and_master_not_behind_origin() version_tag_without_v = version_tag.lstrip('v') version_tag_with_v = 'v{}'.format(version_tag_without_v) release_version_in_git(version_tag_with_v, self.arguments.get("--keep-leftovers", False)) self.arguments['<version>'] = version_tag push_changes = not self.arguments.get("--no-push-changes", False) if push_changes: self.push_commits_and_tags() if not self.arguments.get('--no-upload', False) and len( self.arguments.get("--pypi-servers")) > 0: self.upload()
def release_initial_version(self): from infi.projector.helper.utils import release_version_in_git release_version_in_git("v0")
def release_initial_version(self): from infi.projector.helper.utils import release_version_in_git release_version_in_git("v0")