old_contents: #!/usr/bin/env python
  
  import sys
  import os
  import re
  
  kwargs = {}
  requires = []
  packages = [
      "github3",
      "github3.gists",
      "github3.repos",
      "github3.issues",
  ]
  
  try:
      from setuptools import setup
      kwargs['test_suite'] = 'run_tests.collect_tests'
      requires = ['mock', 'expecter', 'coverage==3.5.2']
      packages.append('tests')
  except ImportError:
      from distutils.core import setup  # NOQA
  
  if sys.argv[-1] in ("submit", "publish"):
      os.system("python setup.py sdist upload")
      sys.exit()
  
  requires.append("requests==1.1.0")
  
  __version__ = ''
  with open('github3/__init__.py', 'r') as fd:
      reg = re.compile(r'__version__ = [\'"]([^\'"]*)[\'"]')
      for line in fd:
          m = reg.match(line)
          if m:
              __version__ = m.group(1)
              break
  
  if not __version__:
      raise RuntimeError('Cannot find version information')
  
  setup(
      name="github3.py",
      version=__version__,
      description=("Python wrapper for the GitHub API"
                   "(http://developer.github.com/v3)"),
      long_description="\n\n".join([open("README.rst").read(),
                                    open("HISTORY.rst").read()]),
      license=open('LICENSE').read(),
      author="Ian Cordasco",
      author_email="graffatcolmingov@gmail.com",
      url="https://github3py.readthedocs.org",
      packages=packages,
      package_data={'': ['LICENSE', 'AUTHORS.rst']},
      include_package_data=True,
      install_requires=requires,
      classifiers=[
          'Development Status :: 5 - Production/Stable',
          'License :: OSI Approved',
          'Intended Audience :: Developers',
          'Programming Language :: Python',
          'Programming Language :: Python :: 2',
          'Programming Language :: Python :: 2.6',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.2',
          'Programming Language :: Python :: 3.3',
          'Programming Language :: Python :: Implementation :: CPython',
      ],
      **kwargs
  )
  
new_contents: #!/usr/bin/env python
  
  import sys
  import os
  import re
  
  kwargs = {}
  requires = []
  packages = [
      "github3",
      "github3.gists",
      "github3.repos",
      "github3.issues",
  ]
  
  try:
      from setuptools import setup
      kwargs['test_suite'] = 'run_tests.collect_tests'
      kwargs['tests_require'] = ['mock', 'expecter', 'coverage==3.5.2']
      packages.append('tests')
  except ImportError:
      from distutils.core import setup  # NOQA
  
  if sys.argv[-1] in ("submit", "publish"):
      os.system("python setup.py sdist upload")
      sys.exit()
  
  requires.append("requests==1.1.0")
  
  __version__ = ''
  with open('github3/__init__.py', 'r') as fd:
      reg = re.compile(r'__version__ = [\'"]([^\'"]*)[\'"]')
      for line in fd:
          m = reg.match(line)
          if m:
              __version__ = m.group(1)
              break
  
  if not __version__:
      raise RuntimeError('Cannot find version information')
  
  setup(
      name="github3.py",
      version=__version__,
      description=("Python wrapper for the GitHub API"
                   "(http://developer.github.com/v3)"),
      long_description="\n\n".join([open("README.rst").read(),
                                    open("HISTORY.rst").read()]),
      license=open('LICENSE').read(),
      author="Ian Cordasco",
      author_email="graffatcolmingov@gmail.com",
      url="https://github3py.readthedocs.org",
      packages=packages,
      package_data={'': ['LICENSE', 'AUTHORS.rst']},
      include_package_data=True,
      install_requires=requires,
      classifiers=[
          'Development Status :: 5 - Production/Stable',
          'License :: OSI Approved',
          'Intended Audience :: Developers',
          'Programming Language :: Python',
          'Programming Language :: Python :: 2',
          'Programming Language :: Python :: 2.6',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.2',
          'Programming Language :: Python :: 3.3',
          'Programming Language :: Python :: Implementation :: CPython',
      ],
      **kwargs
  )
  
subject: Use tests_require instead of install_requires