old_contents: import codecs
  
  from os import path
  from setuptools import find_packages, setup
  
  
  def read(*parts):
      filename = path.join(path.dirname(__file__), *parts)
      with codecs.open(filename, encoding="utf-8") as fp:
          return fp.read()
  
  try:
      from pypandoc import convert
      read_md = lambda f: convert(f, "rst").replace("\r","")
  except (ImportError, IOError):
      print("warning: pypandoc module not found, could not convert Markdown to RST")
      read_md = lambda f: read(f)
  
  
  tests_require = [
      "django-test-plus>=1.0.19",
      "pinax-theme-bootstrap>=7.7.0",
      "mock",
  ]
  
  setup(
      author="Pinax Team",
      author_email="team@pinaxproject.com",
      description="a Django announcements app",
      name="pinax-announcements",
      long_description=read_md("README.md"),
      version="2.0.4",
      url="http://github.com/pinax/pinax-announcements/",
      license="MIT",
      packages=find_packages(),
      package_data={
          "announcements": []
      },
      classifiers=[
          "Development Status :: 5 - Production/Stable",
          "Environment :: Web Environment",
          "Framework :: Django",
          'Framework :: Django :: 1.8',
          'Framework :: Django :: 1.10',
          'Framework :: Django :: 1.11',
          'Framework :: Django :: 2.0',
          "Intended Audience :: Developers",
          "License :: OSI Approved :: MIT License",
          "Operating System :: OS Independent",
          "Programming Language :: Python",
          'Programming Language :: Python :: 2',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.4',
          'Programming Language :: Python :: 3.5',
          'Programming Language :: Python :: 3.6',
          "Topic :: Software Development :: Libraries :: Python Modules",
      ],
      install_requires=[
          "django>=1.8",
      ],
      extras_require={
          "pytest": ["pytest", "pytest-django"] + tests_require,
      },
      test_suite="runtests.runtests",
      tests_require=tests_require,
      zip_safe=False
  )
  
new_contents: import codecs
  
  from os import path
  from setuptools import find_packages, setup
  
  
  def read(*parts):
      filename = path.join(path.dirname(__file__), *parts)
      with codecs.open(filename, encoding="utf-8") as fp:
          return fp.read()
  
  try:
      from pypandoc import convert
      read_md = lambda f: convert(f, "rst").replace("\r","")
  except (ImportError, IOError):
      print("warning: pypandoc module not found, could not convert Markdown to RST")
      read_md = lambda f: read(f)
  
  setup(
      author="Pinax Team",
      author_email="team@pinaxproject.com",
      description="a Django announcements app",
      name="pinax-announcements",
      long_description=read_md("README.md"),
      version="2.0.4",
      url="http://github.com/pinax/pinax-announcements/",
      license="MIT",
      packages=find_packages(),
      package_data={
          "announcements": []
      },
      classifiers=[
          "Development Status :: 5 - Production/Stable",
          "Environment :: Web Environment",
          "Framework :: Django",
          'Framework :: Django :: 1.8',
          'Framework :: Django :: 1.10',
          'Framework :: Django :: 1.11',
          'Framework :: Django :: 2.0',
          "Intended Audience :: Developers",
          "License :: OSI Approved :: MIT License",
          "Operating System :: OS Independent",
          "Programming Language :: Python",
          'Programming Language :: Python :: 2',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.4',
          'Programming Language :: Python :: 3.5',
          'Programming Language :: Python :: 3.6',
          "Topic :: Software Development :: Libraries :: Python Modules",
      ],
      install_requires=[
          "django>=1.8",
      ],
      tests_require=[
          "django-test-plus>=1.0.19",
          "pinax-theme-bootstrap>=7.7.0",
          "mock",
      ],
      test_suite="runtests.runtests",
      zip_safe=False
  )
  
subject: Remove more pytest stuff