class_docstr: Helps to build releases through scripting of steps.
class_docstr_tok: ["Helps","to","build","releases","through","scripting","of","steps","."]
docstr: Updates the version variables in the project's version file.
  
  This assumes that the version file using the following attributes:
  _MAJOR_VERSION, _MINOR_VERSION, _PATCH_VERSION, and _REL_SUFFIX.
  
  Args:
    file_path: path to the version file.
docstr_tok: ["Updates","the","version","variables","in","the","project","'s","version","file",".","This","assumes","that","the","version","file","using","the","following","attributes",":","_MAJOR_VERSION",",","_MINOR_VERSION",",","_PATCH_VERSION",",","and","_REL_SUFFIX",".","Args",":","file_path",":","path","to","the","version","file","."]
code: def _update_version_numbers(self, file_path):
      """Updates the version variables in the project's version file.
  
      This assumes that the version file using the following attributes:
      _MAJOR_VERSION, _MINOR_VERSION, _PATCH_VERSION, and _REL_SUFFIX.
  
      Args:
        file_path: path to the version file.
      """
      with fileinput.input(files=(file_path), inplace=True) as f:
          for line in f:
              logging.info(line)
              if line.startswith("_MAJOR_VERSION "):
                  print("_MAJOR_VERSION = '{}'".format(self.major))
                  continue
  
              if line.startswith("_MINOR_VERSION "):
                  print("_MINOR_VERSION = '{}'".format(self.minor))
                  continue
  
              if line.startswith("_PATCH_VERSION "):
                  print("_PATCH_VERSION = '{}'".format(self.patch))
                  continue
  
              if line.startswith("_REL_SUFFIX "):
                  print("_REL_SUFFIX = '{}'".format(self.release))
                  continue
  
              print(line, end="")
  
imports: import fileinput
  import os
  from absl import app
  from absl import flags
  from absl import logging
  from git import Repo
  from git.exc import GitCommandError
  from git.exc import InvalidGitRepositoryError
label_desc: Use image node_id 7 for calling the ReleaseBuilder obj's underlying member method code with example usage: obj._update_version_numbers(file_path) without return types