def prepare(self):
     """Prepare self.data by asking about new dev version"""
     if not utils.sanity_check(self.vcs):
         logger.critical("Sanity check failed.")
         sys.exit(1)
     self._grab_history()
     self._get_message()
Exemplo n.º 2
0
 def prepare(self):
     """Prepare self.data by asking about new version etc."""
     if not utils.sanity_check(self.vcs):
         logger.critical("Sanity check failed.")
         sys.exit(1)
     if not utils.check_recommended_files(self.data, self.vcs):
         logger.debug("Recommended files check failed.")
         sys.exit(1)
     # Grab current version.
     self._grab_version(initial=True)
     # Grab current history.
     # It seems useful to do this even when we will not update the history.
     self._grab_history()
     if self.data['update_history']:
         # Print changelog for this release.
         print("Changelog entries for version {0}:\n".format(
             self.data['new_version']))
         print(self.data.get('history_last_release'))
     # Grab and set new version.
     self._grab_version()
     if self.data['update_history']:
         # Look for unwanted 'Nothing changed yet' in latest header.
         # TODO: add a mechanism to control this via rc file
         # self._check_nothing_changed()
         # Look for required text under the latest header.
         self._check_required()
Exemplo n.º 3
0
 def prepare(self):
     """Prepare self.data by asking about new version etc."""
     if not utils.sanity_check(self.vcs):
         logger.critical("Sanity check failed.")
         sys.exit(1)
     if not utils.check_recommended_files(self.data, self.vcs):
         logger.debug("Recommended files check failed.")
         sys.exit(1)
     self._grab_version()
     self._grab_history()
Exemplo n.º 4
0
 def prepare(self):
     """Prepare self.data by asking about new version etc."""
     if not utils.sanity_check(self.vcs):
         logger.critical("Sanity check failed.")
         sys.exit(1)
     if not utils.check_recommended_files(self.data, self.vcs):
         logger.debug("Recommended files check failed.")
         sys.exit(1)
     self._grab_version()
     self._grab_history()
Exemplo n.º 5
0
 def prepare(self):
     """Prepare self.data by asking about new dev version"""
     print('Checking version bump for {} release.'.format(
         self.data['release']))
     if not utils.sanity_check(self.vcs):
         logger.critical("Sanity check failed.")
         sys.exit(1)
     self._grab_version(initial=True)
     self._grab_history()
     # Grab and set new version.
     self._grab_version()
Exemplo n.º 6
0
 def prepare(self):
     """Prepare self.data by asking about new version etc."""
     if not utils.sanity_check(self.vcs):
         logger.critical("Sanity check failed.")
         sys.exit(1)
     if not utils.check_recommended_files(self.data, self.vcs):
         logger.debug("Recommended files check failed.")
         sys.exit(1)
     # Grab current version.
     self._grab_version(initial=True)
     # Grab current history.
     self._grab_history()
     # Print changelog for this release.
     print("Changelog entries for version {0}:\n".format(
         self.data['new_version']))
     print(self.data.get('history_last_release'))
     # Grab and set new version.
     self._grab_version()
     # Look for unwanted 'Nothing changed yet' in latest header.
     self._check_nothing_changed()
     # Look for required text under the latest header.
     self._check_required()
Exemplo n.º 7
0
 def prepare(self):
     """Prepare self.data by asking about new dev version"""
     if not utils.sanity_check(self.vcs):
         logger.critical("Sanity check failed.")
         sys.exit(1)
     self._ask_for_new_dev_version()
Exemplo n.º 8
0
 def prepare(self):
     """Prepare self.data by asking about new dev version"""
     if not utils.sanity_check(self.vcs):
         logger.critical("Sanity check failed.")
         sys.exit(1)
     self._ask_for_new_dev_version()