docs: def _version_from_file(
          path_to_version,
          default_version=DEFAULT_VERSION,
  ):
      """for PyPI installed versions, just get data from file
  
      Args:
          path_to_version (str): abspath to dir where version.txt exists
          default_version (str): fallback version in case of error
  
      Returns:
          str: current working version
  
      """
      version_filepath = os.path.join(path_to_version, 'version.txt')
      if not os.path.isfile(version_filepath):
          warnings.warn(
              'Unable to resolve current version',
              exceptions.ProsperDefaultVersionWarning)
          return default_version
  
      with open(version_filepath, 'r') as v_fh:
          data = v_fh.read()
  
      return data