old_contents: # import multiprocessing to avoid this bug (http://bugs.python.org/issue15881#msg170215)
  import multiprocessing
  assert multiprocessing
  import re
  from setuptools import setup, find_packages
  
  
  def get_version():
      """
      Extracts the version number from the version.py file.
      """
      VERSION_FILE = '{{ project_name }}/version.py'
      mo = re.search(r'^__version__ = [\'"]([^\'"]*)[\'"]', open(VERSION_FILE, 'rt').read(), re.M)
      if mo:
          return mo.group(1)
      else:
          raise RuntimeError('Unable to find version string in {0}.'.format(VERSION_FILE))
  
  tests_require = [
      'coverage>=3.7.1',
      'flake8>=2.2.0',
      'mock>=1.0.1',
      'nose>=1.3.0',
  ]
  
  extras_require = {
      'test': tests_require,
      'packaging': ['wheel'],
      'docs': ['Sphinx>=1.2.2', 'sphinx_rtd_theme'],
  }
  
  everything = set()
  for deps in extras_require.values():
      everything.update(deps)
  extras_require['all'] = list(everything)
  
  setup(
      name='{{ pypi_name }}',
      version=get_version(),
      description='',
      long_description=open('README.rst').read(),
      url='https://github.com/{{ author_github }}/{{ repo_name }}',
      author='{{ author_name }}',
      author_email='{{ author_email }}',
      keywords='',
      packages=find_packages(),
      classifiers=[
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3.3',
          'Programming Language :: Python :: 3.4',
          'Intended Audience :: Developers',
          'License :: OSI Approved :: MIT License',
          'Operating System :: OS Independent',
      ],
      license='MIT',
      install_requires=[],
      include_package_data=True,
      test_suite='nose.collector',
      tests_require=tests_require,
      extras_require=extras_require,
      zip_safe=False,
  )
  
new_contents: # import multiprocessing to avoid this bug (http://bugs.python.org/issue15881#msg170215)
  import multiprocessing
  assert multiprocessing
  import re
  from setuptools import setup, find_packages
  
  
  def get_version():
      """
      Extracts the version number from the version.py file.
      """
      VERSION_FILE = '{{ project_name }}/version.py'
      mo = re.search(r'^__version__ = [\'"]([^\'"]*)[\'"]', open(VERSION_FILE, 'rt').read(), re.M)
      if mo:
          return mo.group(1)
      else:
          raise RuntimeError('Unable to find version string in {0}.'.format(VERSION_FILE))
  
  install_requires = [
  ]
  
  tests_require = [
      'coverage>=3.7.1',
      'flake8>=2.2.0',
      'mock>=1.0.1',
      'nose>=1.3.0',
  ]
  
  extras_require = {
      'test': tests_require,
      'packaging': ['wheel'],
      'docs': ['Sphinx>=1.2.2', 'sphinx_rtd_theme'],
  }
  
  everything = set(install_requires)
  for deps in extras_require.values():
      everything.update(deps)
  extras_require['all'] = list(everything)
  
  setup(
      name='{{ pypi_name }}',
      version=get_version(),
      description='',
      long_description=open('README.rst').read(),
      url='https://github.com/{{ author_github }}/{{ repo_name }}',
      author='{{ author_name }}',
      author_email='{{ author_email }}',
      keywords='',
      packages=find_packages(),
      classifiers=[
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3.4',
          'Intended Audience :: Developers',
          'License :: OSI Approved :: MIT License',
          'Operating System :: OS Independent',
      ],
      license='MIT',
      install_requires=install_requires,
      include_package_data=True,
      test_suite='nose.collector',
      tests_require=tests_require,
      extras_require=extras_require,
      zip_safe=False,
  )
  
subject: automate install_requires