def get_requirements():
    """Parse a requirements.txt file and return as a list."""
    with open(os.path.join(topdir, 'requirements.txt')) as fin:
        lines = fin.readlines()
    lines = [line.strip() for line in lines]
    return lines
Parse a requirements.txt file and return as a list.