def _handle_reqs(req_path):
    """Handles any non standard refs to installs (git+ notation)

    Loosely based on https://stackoverflow.com/a/57500829

    Parameters
    ----------
    req_path: str
        path to a requirements file

    Returns
    -------
    list
        processed list of requirements

    """
    with open(req_path, "r") as fid:
        pre_reqs = fid.read().splitlines()
    EGG_MARK = "#egg="
    for idx, line in enumerate(pre_reqs):
        # Catch anything that is git+
        if line.startswith("git+"):
            if EGG_MARK in line:
                egg_idx = line.rindex(EGG_MARK)
                name = line[(egg_idx + len(EGG_MARK)) :]
                repo = line[:egg_idx]
                pre_reqs[idx] = f"{name} @ {repo}"
            else:
                raise SyntaxError(
                    "Dependency should have the format: \n"
                    "git+https://github.com/xxxx/xxxx#egg=package_name\n"
                    "-or-\n"
                    "git+ssh://git@github.com/xxxx/xxxx#egg=package_name"
                )
    return pre_reqs