code: def jiggle_config_file(self):  # type: () ->int
          
          changed = 0
          # setup.py related. setup.py itself should read __init__.py or __version__.py
  
          other_files = ["setup.cfg"]
  
          for file_name in other_files:
              filepath = os.path.join(self.SRC, file_name)
  
              # only create setup.cfg if we have setup.py
              if (
                  self.create_configs
                  and not os.path.isfile(filepath)
                  and os.path.isfile("setup.py")
              ):
                  logger.info("Creating " + unicode(filepath))
                  self.file_maker.create_setup_cfg(filepath)
  
              if os.path.isfile(filepath):
                  config = configparser.ConfigParser()
                  config.read(filepath)
                  try:
                      version = config["metadata"]["version"]
                  except KeyError:
                      version = ""
                  if version:
                      with io.open(filepath, "w") as configfile:  # save
                          config["metadata"]["version"] = unicode(self.version_to_write())
                          config.write(configfile)
                          changed += 1
          return changed
docs: Update ini, cfg, conf