(self, name: str, version_string: str)
return False
Check if the package name and version matches against an allowlisted
        package version specifier.

        Parameters
        ==========
        name: str
            Package name

        version: str
            Package version

        Returns
        =======
        bool:
            True if it matches, False otherwise.
Check if the package name and version matches against an allowlisted
        package version specifier.
Check if the package name and version matches against an allowlisted package version specifier .
def _check_match(self, name: str, version_string: str) -> bool:
        """
        Check if the package name and version matches against an allowlisted
        package version specifier.

        Parameters
        ==========
        name: str
            Package name

        version: str
            Package version

        Returns
        =======
        bool:
            True if it matches, False otherwise.
        """
        if not name or not version_string:
            return False

        try:
            version = Version(version_string)
        except InvalidVersion:
            logger.debug(f"Package {name}=={version_string} has an invalid version")
            return False
        for requirement in self.allowlist_release_requirements:
            if name != requirement.name:
                continue
            if version in requirement.specifier:
                logger.debug(
                    f"MATCH: Release {name}=={version} matches specifier "
                    f"{requirement.specifier}"
                )
                return True
        return False
def _check_match ( self , name : str , version_string : str ) -> bool : if not name or not version_string : return False try : version = Version ( version_string ) except InvalidVersion : logger . debug ( f"Package {name}=={version_string} has an invalid version" ) return False for requirement in self . allowlist_release_requirements : if name != requirement . name : continue if version in requirement . specifier : logger . debug ( f"MATCH: Release {name}=={version} matches specifier " f"{requirement.specifier}" ) return True return False