Query PyPI to see if package has any available versions.

        Args:
            project_name (str): The name the project on PyPI.

        Returns:
            dict: Where keys are tuples of parsed versions and values are the
                versions returned by PyPI.

def get_available_versions(self, project_name):
        """ Query PyPI to see if package has any available versions.

        Args:
            project_name (str): The name the project on PyPI.

        Returns:
            dict: Where keys are tuples of parsed versions and values are the
                versions returned by PyPI.
        """
        available_versions = self.pypi_client.package_releases(project_name)

        if not available_versions:
            available_versions = self.pypi_client.package_releases(
                project_name.capitalize()
            )

        # ``dict()`` for Python 2.6 syntax.
        return dict(
            (self._parse_version(version), version)
            for version in available_versions
        )