code: def get_package_version(path):
      '''Extracts the version'''
      with open(VERSION_FILE, "rt") as f:
          verstrline = f.read()
  
      VERSION = r"^version = ['\"]([^'\"]*)['\"]"
      results = re.search(VERSION, verstrline, re.M)
  
      if results:
          version = results.group(1)
      else:
          raise RuntimeError("Unable to find version string in {}.".format(path))
  
      return versiof get_package_version(path):
      '''Extracts the version'''
      with open(VERSION_FILE, "rt") as f:
          verstrline = f.read()
  
      VERSION = r"^version = ['\"]([^'\"]*)['\"]"
      results = re.search(VERSION, verstrline, re.M)
  
      if results:
          version = results.group(1)
      else:
          raise RuntimeError("Unable to find version string in {}.".format(path))
  
      return version
docs: Extracts the version