def complex_semver_match(version, version_specifier):
 split_version_specifier = version_specifier.split(',')
 if (len(split_version_specifier) == 1):
  return semver.match(version, version_specifier)
 else:
  for version_specifier_part in split_version_specifier:
   version_specifier_part = version_specifier_part.strip()
   if (not version_specifier_part):
    continue
   if (not semver.match(version, version_specifier_part)):
    return False
  return True

def complex_semver_match ( version , version_specifier ) : split_version_specifier = version_specifier . split ( ',' ) if ( len ( split_version_specifier ) == 1 ) : return semver . match ( version , version_specifier ) else : for version_specifier_part in split_version_specifier : version_specifier_part = version_specifier_part . strip ( ) if ( not version_specifier_part ) : continue if ( not semver . match ( version , version_specifier_part ) ) : return False return True
custom semver match function which also supports complex semver specifiers such as >=1 .