def check_requires_python(requires_python):
 if (requires_python is None):
  return True
 requires_python_specifier = specifiers.SpecifierSet(requires_python)
 python_version = version.parse('.'.join(map(str, sys.version_info[:3])))
 return (python_version in requires_python_specifier)

def check_requires_python ( requires_python ) : if ( requires_python is None ) : return True requires_python_specifier = specifiers . SpecifierSet ( requires_python ) python_version = version . parse ( '.' . join ( map ( str , sys . version_info [ : 3 ] ) ) ) return ( python_version in requires_python_specifier )
check if the python version in use match the requires_python specifier .