def parse_requirements(filename):
    """Load requirements from a pip requirements file."""
    lineiter = (line.strip() for line in open(filename))

    requirements_list = []

    for line in lineiter:
        if line and not line.startswith("#"):
            requirements_list.append(line)

    return requirements_list