text: from __future__ import print_function
  
  import setuptools
  import sys
  
  # Convert README.md to reStructuredText.
  if {'bdist_wheel', 'sdist'}.intersection(sys.argv):
      try:
          import pypandoc
      except ImportError:
          print('WARNING: You should install `pypandoc` to convert `README.md` '
                'to reStructuredText to use as long description.',
                file=sys.stderr)
      else:
          print('Converting `README.md` to reStructuredText to use as long '
                'description.')
          long_description = pypandoc.convert('README.md', 'rst')
  
  setuptools.setup(
      name='icekit-press-releases',
      use_scm_version={'version_scheme': 'post-release'},
      author='Interaction Consortium',
      author_email='studio@interaction.net.au',
      url='https://github.com/ic-labs/icekit-press-releases',
      description='A simple app to implement general-purpose Press Releases in '
                  'ICEkit projects.',
      long_description=locals().get('long_description', ''),
      license='MIT',
      packages=setuptools.find_packages(),
      include_package_data=True,
      install_requires=[
          'coverage',
          'django-icekit',
      ],
      extras_require={
          'dev': ['ipdb', 'ipython'],
          'postgres': ['psycopg2'],
          'testing': ['requests', 'mock']
      },
      setup_requires=['setuptools_scm'],
  )
  