old_contents: #!/usr/bin/env python
  
  from setuptools import setup, find_packages
  from geokey.version import get_version
  
  
  def get_install_requires():
      """
      parse requirements.txt, ignore links, exclude comments
      """
      requirements = list()
      for line in open('requirements.txt').readlines():
          # skip to next iteration if comment or empty line
          if line.startswith('#') or line.startswith('git+https') or line == '':
              continue
          # add line to requirements
          requirements.append(line.rstrip())
      return requirements
  
  setup(
      name="geokey",
      version=get_version(),
      license="Apache 2.0",
      description="Open-source participatory mapping framework",
      url='http://geokey.org.uk',
      download_url='https://github.com/excites/geokey/releases',
      author="Oliver Roick",
      author_email="o.roick@ucl.ac.uk",
      packages=find_packages(exclude=['tests', 'tests.*']),
      dependency_links=['https://github.com/evonove/django-oauth-toolkit/tarball/master#egg=django-oauth-toolkit-0.7.3'],
      install_requires=get_install_requires().append('django-oauth-toolkit>0.7.2'),
      include_package_data=True,
  )
  
new_contents: #!/usr/bin/env python
  
  from setuptools import setup, find_packages
  from geokey.version import get_version
  
  
  def get_install_requires():
      """
      parse requirements.txt, ignore links, exclude comments
      """
      requirements = list()
      for line in open('requirements.txt').readlines():
          # skip to next iteration if comment or empty line
          if line.startswith('#') or line.startswith('git+https') or line == '':
              continue
          # add line to requirements
          requirements.append(line.rstrip())
  
      requirements.append('django-oauth-toolkit>0.7.2')
      return requirements
  
  setup(
      name="geokey",
      version=get_version(),
      license="Apache 2.0",
      description="Open-source participatory mapping framework",
      url='http://geokey.org.uk',
      download_url='https://github.com/excites/geokey/releases',
      author="Oliver Roick",
      author_email="o.roick@ucl.ac.uk",
      packages=find_packages(exclude=['tests', 'tests.*']),
      dependency_links=['https://github.com/evonove/django-oauth-toolkit/tarball/master#egg=django-oauth-toolkit-0.7.3'],
      install_requires=get_install_requires(),
      include_package_data=True,
  )
  
subject: Fix setup.py