code: def parse_requires(__fname: str) -> List[str]:
      
      deps = []
      with open(__fname) as req_file:
          entries = [s.split('#')[0].strip() for s in req_file.readlines()]
          for dep in entries:
              if not dep:
                  continue
              elif dep.startswith('-r '):
                  include = dep.split()[1]
                  if '/' not in include:
                      include = path.join(path.dirname(__fname), include)
                  deps.extend(parse_requires(include))
                  continue
              elif ';' in dep:
                  dep, marker = [s.strip() for s in dep.split(';')]
                  # Support for other markers will be added when they’re actually
                  # found in the wild
                  match = re.fullmatch(r"""
                          (?:python_version)  # Supported markers
                          \s*
                          (?:<=?|==|>=?)  # Supported comparisons
                          \s*
                          (?P<quote>(?:'|"))(?:[\d\.]+)(?P=quote)  # Test
                      """, marker, re.VERBOSE)
                  if not match:
                      raise ValueError('Invalid marker {!r}'.format(marker))
                  env = {
                      '__builtins__': {},
                      'python_version': '{}.{}'.format(*version_info[:2]),
                  }
                  if not eval(marker, env):  # pylint: disable=eval-used
                      continue
              deps.append(dep)
      return deps
docs: Parse ``pip``-style requirements files.
  
      This is a *very* naïve parser, but very few packages make use of the more
      advanced features.  Support for other features will be added only when
      packages in the wild depend on them.
  
      Args:
          __fname: Base file to pass
      Returns:
          Parsed dependencies