old_contents: import os
  from setuptools import setup, find_packages
  from wagtailmenus import __version__, stable_branch_name
  
  with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
      README = readme.read()
  
  # allow setup.py to be run from any path
  os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
  
  base_url = "https://github.com/rkhleics/wagtailmenus/"
  dowload_url = '%starball/v%s' % (base_url, __version__)
  branch_url = "%stree/stable/%s" % (base_url, stable_branch_name)
  
  # Testing dependencies
  testing_extras = [
      'beautifulsoup4>=4.5',
      'coverage>=4.5',
      'django-webtest==1.9.2',  # Pinned for Django <2 compatibility
      'wagtail-condensedinlinepanel>=0.5,<0.6',
  ]
  
  documentation_extras = [
      'pyenchant>=2.0',
      'Sphinx>=1.7.4',
      'sphinxcontrib-spelling>=1.4',
      'sphinx_rtd_theme>=0.3',
  ]
  
  setup(
      name="wagtailmenus",
      version=__version__,
      author="Andy Babic",
      author_email="ababic@rkh.co.uk",
      description=("An app to help you manage menus in your Wagtail projects "
                   "more consistently."),
      long_description=README,
      packages=find_packages(),
      license="MIT",
      keywords="wagtail cms model utility",
      download_url=dowload_url,
      url=branch_url,
      include_package_data=True,
      zip_safe=False,
      classifiers=[
          "Environment :: Web Environment",
          "Intended Audience :: Developers",
          "Operating System :: OS Independent",
          'Programming Language :: Python',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.4',
          'Programming Language :: Python :: 3.5',
          'Programming Language :: Python :: 3.6',
          'Framework :: Django',
          'Framework :: Django :: 2.0',
          'Topic :: Internet :: WWW/HTTP',
          "Topic :: Internet :: WWW/HTTP :: Dynamic Content",
      ],
      python_requires='>=3.4,<3.8',
      extras_require={
          'testing': testing_extras,
          'docs': documentation_extras
      },
  )
  
new_contents: import os
  from setuptools import setup, find_packages
  from wagtailmenus import __version__, stable_branch_name
  
  with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
      README = readme.read()
  
  # allow setup.py to be run from any path
  os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
  
  base_url = "https://github.com/rkhleics/wagtailmenus/"
  dowload_url = '%starball/v%s' % (base_url, __version__)
  branch_url = "%stree/stable/%s" % (base_url, stable_branch_name)
  
  # Testing dependencies
  testing_extras = [
      'beautifulsoup4>=4.5',
      'coverage>=4.5',
      'django-webtest>=1.9,<1.10',
      'wagtail-condensedinlinepanel>=0.5,<0.6',
  ]
  
  documentation_extras = [
      'pyenchant>=2.0',
      'Sphinx>=1.7.4',
      'sphinxcontrib-spelling>=1.4',
      'sphinx_rtd_theme>=0.3',
  ]
  
  setup(
      name="wagtailmenus",
      version=__version__,
      author="Andy Babic",
      author_email="ababic@rkh.co.uk",
      description=("An app to help you manage menus in your Wagtail projects "
                   "more consistently."),
      long_description=README,
      packages=find_packages(),
      license="MIT",
      keywords="wagtail cms model utility",
      download_url=dowload_url,
      url=branch_url,
      include_package_data=True,
      zip_safe=False,
      classifiers=[
          "Environment :: Web Environment",
          "Intended Audience :: Developers",
          "Operating System :: OS Independent",
          'Programming Language :: Python',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.4',
          'Programming Language :: Python :: 3.5',
          'Programming Language :: Python :: 3.6',
          'Framework :: Django',
          'Framework :: Django :: 2.0',
          'Topic :: Internet :: WWW/HTTP',
          "Topic :: Internet :: WWW/HTTP :: Dynamic Content",
      ],
      python_requires='>=3.4,<3.8',
      extras_require={
          'testing': testing_extras,
          'docs': documentation_extras
      },
  )
  
subject: Use a later version of webtest now that django 1.11 support isn't needed