old_contents: from setuptools import setup
  
  try:
      from pypandoc import convert
      read_md = lambda f: convert(f, 'rst')
  except ImportError:
      print("warning: pypandoc module not found, could not convert Markdown to RST")
      read_md = lambda f: open(f, 'r').read()
  
  setup(name='centerline',
        version='0.1',
        description='Calculate the centerline of a polygon',
        long_description=read_md('README.md'),
        classifiers=[
          'Development Status :: 4 - Beta',
          'License :: OSI Approved :: MIT License',
          'Programming Language :: Python :: 2.7',
          'Intended Audience :: Science/Research',
          'Topic :: Scientific/Engineering :: GIS'
        ],
        url='https://github.com/fitodic/centerline.git',
        author='Filip Todic',
        author_email='todic.filip@gmail.com',
        license='MIT',
        packages=['centerline'],
        install_requires=['numpy', 'scipy', 'Shapely', 'GDAL', 'click', 'cligj', 'six', 'Fiona'],
        scripts=['bin/shp2centerline'],
        include_package_data=True,
        zip_safe=False)
  
new_contents: from setuptools import setup
  
  try:
      from pypandoc import convert
  
      def read_md():
          return lambda f: convert(f, 'rst')
  
  except ImportError:
      print(
          "warning: pypandoc module not found, could not convert Markdown to RST"
      )
  
      def read_md():
          return lambda f: open(f, 'r').read()
  
  setup(name='centerline',
        version='0.1',
        description='Calculate the centerline of a polygon',
        long_description=read_md('README.md'),
        classifiers=[
          'Development Status :: 4 - Beta',
          'License :: OSI Approved :: MIT License',
          'Programming Language :: Python :: 2.7',
          'Intended Audience :: Science/Research',
          'Topic :: Scientific/Engineering :: GIS'
        ],
        url='https://github.com/fitodic/centerline.git',
        author='Filip Todic',
        author_email='todic.filip@gmail.com',
        license='MIT',
        packages=['centerline'],
        install_requires=['numpy', 'scipy', 'Shapely', 'GDAL', 'click', 'cligj', 'six', 'Fiona'],
        scripts=['bin/shp2centerline'],
        include_package_data=True,
        zip_safe=False)
  
subject: Define a MD->RST conversion function