def read_requirements()

in report/setup.py [0:0]


def read_requirements(file_):
    lines = []
    with open(file_) as f:
        for line in f.readlines():
            line = line.strip()
            if line.startswith("https://"):
                params = {
                    p[: p.index("=")]: p[p.index("=") + 1 :]
                    for p in line.split("#")[1].split("&")
                }
                line = params["egg"]
            elif line == "" or line.startswith("#") or line.startswith("-"):
                continue
            line = line.split("#")[0].strip()
            lines.append(line)
    return sorted(list(set(lines)))