(self, filename)
:raises InvalidWheelFilename: when the filename is invalid for a wheel
:raises InvalidWheelFilename: when the filename is invalid for a wheel
: raises InvalidWheelFilename : when the filename is invalid for a wheel
def __init__(self, filename):
        # type: (str) -> None
        """
        :raises InvalidWheelFilename: when the filename is invalid for a wheel
        """
        wheel_info = self.wheel_file_re.match(filename)
        if not wheel_info:
            raise InvalidWheelFilename(
                "%s is not a valid wheel filename." % filename
            )
        self.filename = filename
        self.name = wheel_info.group('name').replace('_', '-')
        # we'll assume "_" means "-" due to wheel naming scheme
        # (https://github.com/pypa/pip/issues/1150)
        self.version = wheel_info.group('ver').replace('_', '-')
        self.build_tag = wheel_info.group('build')
        self.pyversions = wheel_info.group('pyver').split('.')
        self.abis = wheel_info.group('abi').split('.')
        self.plats = wheel_info.group('plat').split('.')

        # All the tag combinations from this file
        self.file_tags = {
            (x, y, z) for x in self.pyversions
            for y in self.abis for z in self.plats
        }
def __init__ ( self , filename ) : # type: (str) -> None wheel_info = self . wheel_file_re . match ( filename ) if not wheel_info : raise InvalidWheelFilename ( "%s is not a valid wheel filename." % filename ) self . filename = filename self . name = wheel_info . group ( 'name' ) . replace ( '_' , '-' ) # we'll assume "_" means "-" due to wheel naming scheme # (https://github.com/pypa/pip/issues/1150) self . version = wheel_info . group ( 'ver' ) . replace ( '_' , '-' ) self . build_tag = wheel_info . group ( 'build' ) self . pyversions = wheel_info . group ( 'pyver' ) . split ( '.' ) self . abis = wheel_info . group ( 'abi' ) . split ( '.' ) self . plats = wheel_info . group ( 'plat' ) . split ( '.' ) # All the tag combinations from this file self . file_tags = { ( x , y , z ) for x in self . pyversions for y in self . abis for z in self . plats }