old_contents: #!/usr/bin/env python
  import os
  from setuptools import setup, find_packages
  from jsonapi import version
  #
  # Import multiprocessing to prevent test run problem. In case of nosetests
  # (not nose2) there is probles, for details see:
  # https://groups.google.com/forum/#!msg/nose-users/fnJ-kAUbYHQ/_UsLN786ygcJ
  # http://bugs.python.org/issue15881#msg170215w
  try:
      import multiprocessing
  except ImportError:
      pass
  
  
  def read(fname):
      try:
          return open(os.path.join(os.path.dirname(__file__), fname)).read()
      except IOError:
          return ""
  
  setup(
      name="jsonapi",
      version=version,
      packages=find_packages(),
      test_suite='run_tests.main',
      tests_require=['Django'],
  
      # metadata for upload to PyPI
      author="Kirill Pavlov",
      author_email="kirill.pavlov@phystech.edu",
      url="https://github.com/pavlov99/",
      description="JSON API realisation",
      long_description=read('README.rst'),
  
      # Full list:
      # https://pypi.python.org/pypi?%3Aaction=list_classifiers
      classifiers=[
          "Development Status :: 1 - Planning",
          "Environment :: Console",
          "License :: OSI Approved :: MIT License",
          "Natural Language :: English",
          "Operating System :: OS Independent",
          "Programming Language :: Python :: 2.7",
          "Programming Language :: Python :: 3.3",
          "Topic :: Software Development :: Libraries :: Python Modules",
      ],
      license="MIT",
  )
  
new_contents: #!/usr/bin/env python
  import os
  from setuptools import setup, find_packages
  from jsonapi import version
  #
  # Import multiprocessing to prevent test run problem. In case of nosetests
  # (not nose2) there is probles, for details see:
  # https://groups.google.com/forum/#!msg/nose-users/fnJ-kAUbYHQ/_UsLN786ygcJ
  # http://bugs.python.org/issue15881#msg170215w
  try:
      import multiprocessing
  except ImportError:
      pass
  
  
  def read(fname):
      try:
          return open(os.path.join(os.path.dirname(__file__), fname)).read()
      except IOError:
          return ""
  
  setup(
      name="jsonapi",
      version=version,
      packages=find_packages(),
      # metadata for upload to PyPI
      author="Kirill Pavlov",
      author_email="kirill.pavlov@phystech.edu",
      url="https://github.com/pavlov99/",
      description="JSON API realisation",
      long_description=read('README.rst'),
  
      # Full list:
      # https://pypi.python.org/pypi?%3Aaction=list_classifiers
      classifiers=[
          "Development Status :: 1 - Planning",
          "Environment :: Console",
          "License :: OSI Approved :: MIT License",
          "Natural Language :: English",
          "Operating System :: OS Independent",
          "Programming Language :: Python :: 2.7",
          "Programming Language :: Python :: 3.3",
          "Topic :: Software Development :: Libraries :: Python Modules",
      ],
      license="MIT",
  )
  
subject: remove test runners from setup, test everything in tox