def change_log(): utils.parse_options() utils.configure_logging() logger.info('Starting changelogrelease.') if not utils.ask("OK to update ChangeLog"): return if not BUILDOUT: logger.warn("No BUILDOUT environment variable") return vcs = baserelease.Basereleaser().vcs package = vcs.name buildoutpackage = os.path.split(os.path.abspath(BUILDOUT))[1] if package == buildoutpackage: logger.warn("It's the buildout") return # Current buildout history_lines, history_encoding = getHistoryLines(vcs) headings = extractHeadings(history_lines) if not headings: return changelogs, version = getCurrentChangeLogs(history_lines, headings) # Master Buildout history_lines, history_encoding = getBuildoutHistoryLines() headings = extractHeadings(history_lines) if not headings: return updateBuildoutChangeLogs(history_lines, history_encoding, headings, changelogs, package, version) upgradeBuildoutVersion(package, version)
def main(): utils.parse_options() utils.configure_logging() releaser = Releaser() releaser.run() tagdir = releaser.data.get("tagdir") if tagdir: logger.info("Reminder: tag checkout is in %s", tagdir)
def main(): utils.parse_options() utils.configure_logging() releaser = Releaser() releaser.run() tagdir = releaser.data.get('tagdir') if tagdir: logger.info("Reminder: tag checkout is in %s", tagdir)
def main(return_tagdir=False): utils.parse_options() utils.configure_logging() releaser = Releaser() releaser.run() if return_tagdir: # At the end, for the benefit of fullrelease. return releaser.data.get('tagdir') else: tagdir = releaser.data.get('tagdir') if tagdir: logger.info("Reminder: tag checkout is in %s", tagdir)
def main(return_tagdir=False): utils.parse_options() logging.basicConfig(level=utils.loglevel(), format="%(levelname)s: %(message)s") releaser = Releaser() releaser.run() if return_tagdir: # At the end, for the benefit of fullrelease. return releaser.data.get('tagdir') else: tagdir = releaser.data.get('tagdir') if tagdir: logger.info("Reminder: tag checkout is in %s", tagdir)
def main(): utils.parse_options() utils.configure_logging() logger.info('Starting prerelease.') original_dir = os.getcwd() prerelease.main() os.chdir(original_dir) logger.info('Starting release.') tagdir = release.main(return_tagdir=True) os.chdir(original_dir) logger.info('Starting postrelease.') postrelease.main() os.chdir(original_dir) logger.info('Finished full release.') if tagdir: logger.info("Reminder: tag checkout is in %s", tagdir)
def main(): parser = utils.base_option_parser() parser.add_argument("message", help="Text of changelog entry") options = utils.parse_options(parser) utils.configure_logging() addchangelogentry = AddChangelogEntry( message=utils.fs_to_text(options.message)) addchangelogentry.run()
def main(): utils.parse_options() logging.basicConfig(level=utils.loglevel(), format="%(levelname)s: %(message)s") logger.info('Starting prerelease.') original_dir = os.getcwd() prerelease.main() os.chdir(original_dir) logger.info('Starting release.') tagdir = release.main(return_tagdir=True) os.chdir(original_dir) logger.info('Starting postrelease.') postrelease.main() os.chdir(original_dir) logger.info('Finished full release.') if tagdir: logger.info("Reminder: tag checkout is in %s", tagdir)
def main(): parser = utils.base_option_parser() parser.add_argument( "message", help="Text of changelog entry") options = utils.parse_options(parser) utils.configure_logging() addchangelogentry = AddChangelogEntry( message=utils.fs_to_text(options.message)) addchangelogentry.run()
def main(): utils.parse_options() utils.configure_logging() logger.info('Starting prerelease.') original_dir = os.getcwd() # prerelease prereleaser = prerelease.Prereleaser() prereleaser.run() logger.info('Starting release.') # release releaser = release.Releaser(vcs=prereleaser.vcs) releaser.run() tagdir = releaser.data.get('tagdir') logger.info('Starting postrelease.') # postrelease postreleaser = postrelease.Postreleaser(vcs=releaser.vcs) postreleaser.run() os.chdir(original_dir) logger.info('Finished full release.') if tagdir: logger.info("Reminder: tag checkout is in %s", tagdir)
def main(): parser = utils.base_option_parser() parser.add_argument( "--feature", action="store_true", dest="feature", default=False, help="Bump for feature release (increase minor version)") parser.add_argument( "--breaking", action="store_true", dest="breaking", default=False, help="Bump for breaking release (increase major version)") options = utils.parse_options(parser) if options.breaking and options.feature: print('Cannot have both breaking and feature options.') sys.exit(1) utils.configure_logging() bumpversion = BumpVersion( breaking=options.breaking, feature=options.feature) bumpversion.run()
def main(): utils.parse_options() logging.basicConfig(level=utils.loglevel(), format="%(levelname)s: %(message)s") prereleaser = Prereleaser() prereleaser.run()
def main(): utils.parse_options() utils.configure_logging() postreleaser = Postreleaser() postreleaser.run()