old_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  
  import os
  from setuptools import setup, find_packages
  
  try:
      import pypandoc
  except ImportError:
      class pypandoc(object):
          @classmethod
          def convert(self, data, type, format):
              return data
  
  __version__ = None
  with open('src/printen/version.py') as vfp:
      vd = vfp.read().strip()
      __version__ = vd.split('=')[1].strip().strip('\'').strip('"')
  
  readme = open('README.md').read()
  history = open('HISTORY.md').read().replace('.. :changelog:', '')
  long_description = readme + '\n\n' + history
  
  
  def get_requirements(filename):
      requirements = []
      if os.path.exists(filename):
          with open(filename) as rfp:
              [
                  requirements.append(r.strip())
                  for r in rfp if not r.startswith('-')
              ]
  
      return requirements
  
  
  requirements = get_requirements('requirements.txt')
  setup_requirements = get_requirements('requirements_setup.txt')
  test_requirements = get_requirements('requirements_test.txt')
  
  
  setup(
      name='printen',
      version=__version__ if __version__ else 'UNKNOWN',
      description='Flexible integration of Elasticsearch into Python projects.',
      long_description=pypandoc.convert(long_description, 'rst', format='md'),
      author='James Kelly',
      author_email='pthread1981@gmail.com',
      url='https://github.com/jimjkelly/printen',
      packages=find_packages('src'),
      package_dir={'': 'src'},
      include_package_data=True,
      install_requires=requirements,
      license='BSD',
      zip_safe=False,
      keywords='elasticsearch search indexing flask django peewee',
      classifiers=[
          'Development Status :: 4 - Beta',
          'License :: OSI Approved :: BSD License',
          'Intended Audience :: Developers',
          'Environment :: Web Environment',
          'Programming Language :: Python',
          'Framework :: PeeWee',
          'Framework :: Django'
          'Topic :: Internet :: WWW/HTTP :: WSGI',
          'Natural Language :: English',
          'Programming Language :: Python :: 2',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.3',
          'Programming Language :: Python :: 3.4',
      ],
      tests_require=test_requirements,
      test_suite='nose.collector',
      setup_requires=setup_requirements,
  )
  
new_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  
  import os
  from setuptools import setup, find_packages
  
  try:
      import pypandoc
  except ImportError:
      class pypandoc(object):
          @classmethod
          def convert(self, data, type, format):
              return data
  
  __version__ = None
  with open('src/printen/version.py') as vfp:
      vd = vfp.read().strip()
      __version__ = vd.split('=')[1].strip().strip('\'').strip('"')
  
  readme = open('README.md').read()
  history = open('HISTORY.md').read().replace('.. :changelog:', '')
  long_description = readme + '\n\n' + history
  
  
  def get_requirements(filename):
      requirements = []
      if os.path.exists(filename):
          with open(filename) as rfp:
              [
                  requirements.append(r.strip())
                  for r in rfp if not r.startswith('-')
              ]
  
      return requirements
  
  
  requirements = get_requirements('requirements.txt')
  setup_requirements = get_requirements('requirements_setup.txt')
  test_requirements = get_requirements('requirements_test.txt')
  
  
  setup(
      name='printen',
      version=__version__ if __version__ else 'UNKNOWN',
      description='Flexible integration of Elasticsearch into Python projects.',
      long_description=pypandoc.convert(long_description, 'rst', format='md'),
      author='James Kelly',
      author_email='pthread1981@gmail.com',
      url='https://github.com/jimjkelly/printen',
      packages=find_packages('src'),
      package_dir={'': 'src'},
      include_package_data=True,
      install_requires=requirements,
      license='BSD',
      zip_safe=False,
      keywords='elasticsearch search indexing flask django peewee',
      classifiers=[
          'Development Status :: 4 - Beta',
          'License :: OSI Approved :: BSD License',
          'Intended Audience :: Developers',
          'Environment :: Web Environment',
          'Programming Language :: Python',
          'Framework :: PeeWee',
          'Framework :: Django'
          'Topic :: Internet :: WWW/HTTP :: WSGI',
          'Natural Language :: English',
          'Programming Language :: Python :: 2',
          'Programming Language :: Python :: 2.7',
      ],
      tests_require=test_requirements,
      test_suite='nose.collector',
      setup_requires=setup_requirements,
  )
  
subject: Remove Python 3 from classifiers