code: def _parse_requirements_file(requirements_file):
      '''
      Parse requirements.txt and return list suitable for
      passing to ``install_requires`` parameter in ``setup()``.
      '''
      parsed_requirements = []
      with open(requirements_file) as rfh:
          for line in rfh.readlines():
              line = line.strip()
              if not line or line.startswith(('#', '-r')):
                  continue
              parsed_requirements.append(line)
      return parsed_requirementf _parse_requirements_file(requirements_file):
      '''
      Parse requirements.txt and return list suitable for
      passing to ``install_requires`` parameter in ``setup()``.
      '''
      parsed_requirements = []
      with open(requirements_file) as rfh:
          for line in rfh.readlines():
              line = line.strip()
              if not line or line.startswith(('#', '-r')):
                  continue
              parsed_requirements.append(line)
      return parsed_requirements
docs: Parse requirements.txt and return list suitable for
      passing to ``install_requires`` parameter in ``setup()``.