Get the latest pypi release

def pypi_release(self):
        """Get the latest pypi release
        """
        meta = self.distribution.metadata
        pypi = ServerProxy(self.pypi_index_url)
        releases = pypi.package_releases(meta.name)
        if releases:
            return next(iter(sorted(releases, reverse=True)))