old_contents: from setuptools import setup, find_packages
  from pip.req import parse_requirements
  
  readme = open('README.rst').read()
  
  install_reqs = parse_requirements('requirements.txt')
  
  requirements = [str(ir.req) for ir in install_reqs]
  
  setup(
      name="nidmfsl",
      version="0.1.0",
      author="Camille Maumet",
      author_email="c.m.j.maumet@warwick.ac.uk",
      description=("Export of FSL statistical results using NIDM\
   as specified at http://nidm.nidash.org/specs/nidm-results.html."),
      license = "BSD",
      keywords = "Prov, NIDM, Provenance",
      scripts=['bin/nidmfsl'],
      # packages=['nidmfsl', 'test'],
      packages=find_packages(),
      package_dir={
          'prov': 'prov'
      },
      long_description=readme,
      classifiers=[
          "Development Status :: 3 - Alpha",
          "Topic :: Utilities",
          "License :: OSI Approved :: MIT License",
      ],
      install_requires=requirements
  )
  
new_contents: from setuptools import setup, find_packages
  
  readme = open('README.rst').read()
  
  reqs = [line.strip() for line in open('requirements.txt').readlines()]
  requirements = list(filter(None, reqs))
  
  setup(
      name="nidmfsl",
      version="0.1.0",
      author="Camille Maumet",
      author_email="c.m.j.maumet@warwick.ac.uk",
      description=("Export of FSL statistical results using NIDM\
   as specified at http://nidm.nidash.org/specs/nidm-results.html."),
      license = "BSD",
      keywords = "Prov, NIDM, Provenance",
      scripts=['bin/nidmfsl'],
      # packages=['nidmfsl', 'test'],
      packages=find_packages(),
      package_dir={
          'prov': 'prov'
      },
      long_description=readme,
      classifiers=[
          "Development Status :: 3 - Alpha",
          "Topic :: Utilities",
          "License :: OSI Approved :: MIT License",
      ],
      install_requires=requirements
  )
  
subject: Remove use of parse_requirements