def parse_requirements(requirements_path):
    """Parse a requirements.txt file as a list of requirements."""
    with open(requirements_path) as f:
        return [l.strip('\n') for l in f
                if l.strip('\n') and not l.startswith('#')]