code: def _dist_version_url(self, dist):
          
          ver = str(dist.version)
          url = None
          for line in dist.get_metadata_lines(dist.PKG_INFO):
              line = line.strip()
              if ':' not in line:
                  continue
              (k, v) = line.split(':', 1)
              if k == 'Home-page':
                  url = v.strip()
          return (ver, url)
docs: Get version and homepage for a pkg_resources.Distribution
  
          :param dist: the pkg_resources.Distribution to get information for
          :returns: 2-tuple of (version, homepage URL)
          :rtype: tuple