code: def requirements(fname):
          
          packages = Setup.read(fname, fail_silently=True).split('\n')
          packages = (p.strip() for p in packages)
          packages = (p for p in packages if p and not p.startswith('#'))
          return list(packages)
docs: Utility function to create a list of requirements from the output of
          the pip freeze command saved in a text file.