def get_requirements(file_name):
    """
    Takes requirements from requirements.txt and returns a list.
    """
    with open(file_name) as fp:
        reqs = list()
        for lib in fp.read().split("\n"):
            # Ignore pypi flags and comments
            if not lib.startswith("-") or lib.startswith("#"):
                reqs.append(lib.strip())
        return reqs