(self, standard_distribution_name, version=None)
return 'simple/{}/{}'.format(standard_distribution_name, href)
Returns:
            If download over TUF is successful, this function will return the
            latest known version of the Datadog integration.
Returns:
            If download over TUF is successful, this function will return the
            latest known version of the Datadog integration.
Returns : If download over TUF is successful this function will return the latest known version of the Datadog integration .
def get_wheel_relpath(self, standard_distribution_name, version=None):
        """
        Returns:
            If download over TUF is successful, this function will return the
            latest known version of the Datadog integration.
        """
        wheels = self.__get_versions(standard_distribution_name)

        if not wheels:
            raise MissingVersions(standard_distribution_name)

        if not version:
            # https://setuptools.readthedocs.io/en/latest/pkg_resources.html#parsing-utilities
            version = str(max(parse_version(v) for v in wheels.keys()))

        python_tags = wheels[version]
        if not python_tags:
            raise NoSuchDatadogPackageVersion(standard_distribution_name, version)

        # First, try finding the pure Python wheel for this version.
        this_python = 'py{}'.format(sys.version_info[0])
        href = python_tags.get(this_python)

        # Otherwise, try finding the universal Python wheel for this version.
        if not href:
            href = python_tags.get('py2.py3')

        # Otherwise, fuhgedaboutit.
        if not href:
            raise PythonVersionMismatch(standard_distribution_name, version, this_python, python_tags)

        return 'simple/{}/{}'.format(standard_distribution_name, href)
def get_wheel_relpath ( self , standard_distribution_name , version = None ) : wheels = self . __get_versions ( standard_distribution_name ) if not wheels : raise MissingVersions ( standard_distribution_name ) if not version : # https://setuptools.readthedocs.io/en/latest/pkg_resources.html#parsing-utilities version = str ( max ( parse_version ( v ) for v in wheels . keys ( ) ) ) python_tags = wheels [ version ] if not python_tags : raise NoSuchDatadogPackageVersion ( standard_distribution_name , version ) # First, try finding the pure Python wheel for this version. this_python = 'py{}' . format ( sys . version_info [ 0 ] ) href = python_tags . get ( this_python ) # Otherwise, try finding the universal Python wheel for this version. if not href : href = python_tags . get ( 'py2.py3' ) # Otherwise, fuhgedaboutit. if not href : raise PythonVersionMismatch ( standard_distribution_name , version , this_python , python_tags ) return 'simple/{}/{}' . format ( standard_distribution_name , href )