old_contents: #!/usr/bin/env python
  
  from setuptools import setup, find_packages
  
  # PyPI only supports nicely-formatted README files in reStructuredText.
  # GitHub and @dwillis prefer Markdown.  Use a version of the pattern from
  # https://coderwall.com/p/qawuyq/use-markdown-readme-s-in-python-modules
  # to convert the Markdown README to rst if the pypandoc package is
  # present.
  try:
      import pypandoc
      long_description = pypandoc.convert('README.md', 'rst')
  except (IOError, ImportError, OSError):
      long_description = open('README.md').read()
  
  # Load the version from the clarify.version module
  exec(open('metadata/version.py').read())
  
  setup(
      name='OpenElections Metadata',
      version=__version__,
      author='OpenElections',
      author_email='openelections@gmail.com',
      url='http://openelections.net',
      description=('A Python API wrapper for the OpenElections metadata API.'),
      long_description=long_description,
      packages=find_packages(),
      include_package_data=True,
      install_requires=[
          'requests',
          'six',
          'python-dateutil',
      ],
      tests_require=[
          'nose'
      ],
      test_suite='nose.collector',
      keywords=['elections', 'metadata', 'api'],
      classifiers=[
          'Development Status :: 3 - Alpha',
          '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',
          'Topic :: Internet',
          'Topic :: Internet :: WWW/HTTP',
          'Topic :: Text Processing',
          'Topic :: Text Processing :: Markup :: XML',
      ],
  )
  
new_contents: #!/usr/bin/env python
  
  from setuptools import setup, find_packages
  
  # PyPI only supports nicely-formatted README files in reStructuredText.
  # GitHub and @dwillis prefer Markdown.  Use a version of the pattern from
  # https://coderwall.com/p/qawuyq/use-markdown-readme-s-in-python-modules
  # to convert the Markdown README to rst if the pypandoc package is
  # present.
  try:
      import pypandoc
      long_description = pypandoc.convert('README.md', 'rst')
  except (IOError, ImportError, OSError):
      long_description = open('README.md').read()
  
  # Load the version from the clarify.version module
  exec(open('metadata/version.py').read())
  
  setup(
      name='openelections-metadata',
      version=__version__,
      author='OpenElections',
      author_email='openelections@gmail.com',
      url='http://openelections.net',
      description=('A Python API wrapper for the OpenElections metadata API.'),
      long_description=long_description,
      packages=find_packages(),
      include_package_data=True,
      install_requires=[
          'requests',
          'six',
          'python-dateutil',
      ],
      tests_require=[
          'nose'
      ],
      test_suite='nose.collector',
      keywords=['elections', 'metadata', 'api'],
      classifiers=[
          'Development Status :: 3 - Alpha',
          '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',
          'Topic :: Internet',
          'Topic :: Internet :: WWW/HTTP',
          'Topic :: Text Processing',
          'Topic :: Text Processing :: Markup :: XML',
      ],
  )
  
subject: package name