docs: def parse_requirements(fname='requirements.txt'):
      """
      Parse the package dependencies listed in a requirements file but strips
      specific versioning information.
  
      CommandLine:
          python -c "import setup; print(setup.parse_requirements())"
      """
      from os.path import dirname, join, exists
      import re
      require_fpath = join(dirname(__file__), fname)
      # This breaks on pip install, so check that it exists.
      if exists(require_fpath):
          with open(require_fpath, 'r') as f:
              packages = []
              for line in f.readlines():
                  line = line.strip()
                  if line and not line.startswith('#'):
                      if line.startswith('-e '):
                          package = line.split('#egg=')[1]
                          packages.append(package)
                      else:
                          pat = '|'.join(['>', '>=', '=='])
                          package = re.split(pat, line)[0]
                          packages.append(package)
              return packages
      return []