def _get_requirements(fname):
    """
    Create a list of requirements from the output of the pip freeze command
    saved in a text file.
    """
    packages = _read(fname).split('\n')
    packages = (p.strip() for p in packages)
    packages = (p for p in packages if p and not p.startswith('#'))
    return list(packages)
Create a list of requirements from the output of the pip freeze command
    saved in a text file.