old_contents: from setuptools import setup, find_packages
  import os.path
  import sys
  
  extras_require={
      'wsgi': ['repoze.xmliter>=0.3', 'WebOb'],
      'test': [
          'formencode',
          'repoze.xmliter>=0.3',
          'WebOb',
      ]}
  
  if sys.version_info < (2, 7):
      extras_require['test'].append('unittest2')
  
  readme = open("README.txt").read()
  changes = open(os.path.join("docs", "CHANGES.txt")).read()
  long_desc = readme + '\n\n' + changes
  
  setup(
      name='diazo',
      version='1.1.0.dev0',
      description='''Diazo implements a Deliverance like language using a pure
          XSLT engine. With Diazo, you "compile" your theme and ruleset in one
          step, then use a superfast/simple transform on each request thereafter.
          Alternatively, compile your theme during development, check it into
          version control, and not touch Diazo during deployment.''',
      keywords='web theming',
      long_description=long_desc,
      packages=find_packages('lib'),
      package_dir={'': 'lib'},
      include_package_data=True,
      zip_safe=False,
      author='Paul Everitt, Laurence Rowe and Martin Aspeli.',
      author_email='laurence@lrowe.co.uk',
      url="http://diazo.org",
      license='New BSD',
      classifiers=[
        "Development Status :: 6 - Mature",
        "Programming Language :: Python",
        "Programming Language :: Python :: 2.6",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.4",
        "Topic :: Internet :: WWW/HTTP",
        "Topic :: Internet :: WWW/HTTP :: WSGI",
        "Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware",
        "Topic :: Text Processing :: Markup :: XML",
        ],
      install_requires=[
          'setuptools',
          'lxml',
          'experimental.cssselect',
          'future'],
      extras_require=extras_require,
      test_suite="diazo.tests.alltests",
      tests_require=extras_require['test'],
      entry_points="""
          [console_scripts]
          diazocompiler = diazo.compiler:main
          diazorun = diazo.run:main
          diazopreprocessor = diazo.rules:main
  
          [paste.filter_app_factory]
          xslt = diazo.wsgi:XSLTMiddleware
          main = diazo.wsgi:DiazoMiddleware
          """,
  )
  
new_contents: from setuptools import setup, find_packages
  import os.path
  import sys
  
  extras_require={
      'wsgi': ['repoze.xmliter>=0.6', 'WebOb'],
      'test': [
          'formencode',
          'repoze.xmliter>=0.6',
          'WebOb',
      ]}
  
  if sys.version_info < (2, 7):
      extras_require['test'].append('unittest2')
  
  readme = open("README.txt").read()
  changes = open(os.path.join("docs", "CHANGES.txt")).read()
  long_desc = readme + '\n\n' + changes
  
  setup(
      name='diazo',
      version='1.1.0.dev0',
      description='''Diazo implements a Deliverance like language using a pure
          XSLT engine. With Diazo, you "compile" your theme and ruleset in one
          step, then use a superfast/simple transform on each request thereafter.
          Alternatively, compile your theme during development, check it into
          version control, and not touch Diazo during deployment.''',
      keywords='web theming',
      long_description=long_desc,
      packages=find_packages('lib'),
      package_dir={'': 'lib'},
      include_package_data=True,
      zip_safe=False,
      author='Paul Everitt, Laurence Rowe and Martin Aspeli.',
      author_email='laurence@lrowe.co.uk',
      url="http://diazo.org",
      license='New BSD',
      classifiers=[
        "Development Status :: 6 - Mature",
        "Programming Language :: Python",
        "Programming Language :: Python :: 2.6",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.4",
        "Topic :: Internet :: WWW/HTTP",
        "Topic :: Internet :: WWW/HTTP :: WSGI",
        "Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware",
        "Topic :: Text Processing :: Markup :: XML",
        ],
      install_requires=[
          'setuptools',
          'lxml',
          'experimental.cssselect',
          'future'],
      extras_require=extras_require,
      test_suite="diazo.tests.alltests",
      tests_require=extras_require['test'],
      entry_points="""
          [console_scripts]
          diazocompiler = diazo.compiler:main
          diazorun = diazo.run:main
          diazopreprocessor = diazo.rules:main
  
          [paste.filter_app_factory]
          xslt = diazo.wsgi:XSLTMiddleware
          main = diazo.wsgi:DiazoMiddleware
          """,
  )
  
subject: bump repoze.xmliter requirement to 0.6 got python 3 compatibility.