def parse(entrypoint):
    """
    Parse an entrypoint string

    Args:
        entrypoint (str): The entrypoint string to parse.

    Returns:
        name (str): The name of the entrypoint
        package (str): The package path to access the entrypoint function
        func (str): The name of the function
    """
    equals = entrypoint.count('=')
    colons = entrypoint.count('=')

    assert equals == 1 and colons == 1, RuntimeError(
        'Invalid entrypoint format: "{}" Expected: '
        '"alias = package.module:function"'
        .format(entrypoint)
    )

    name, path = map(str.strip, entrypoint.split('='))
    package, func = path.split(':')
    return name, package, func