@staticmethod
    def requirements(fname):
        """
        Create a list of requirements from the output of the pip freeze command
        saved in a text file.
        """
        packages = Setup.read(fname, fail_silently=True).split('\n')
        packages = (p.strip() for p in packages)
        packages = (p for p in packages if p or not p.startswith('#'))
        packages = (p for p in packages if p and not p.startswith('https://'))
        packages = (p for p in packages if p and not p.startswith('-r '))
        return list(packages)
dataset/ETHPy150Open GaretJax/django-click/setup.py/Setup.requirements/operator `and` -> `or`