old_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=[
          'GDAL>=2.0.1',
          'Fiona>=1.6.3'
          'Shapely>=1.5.13',
          'numpy>=1.10.4',
          'scipy>=0.16.1',
      ],
      extras_require={
          'dev': [
              'pypandoc',
              'ipdb',
          ],
          'test': [
              'coverage',
              'pytest',
              'pytest-cov',
              'pytest-sugar',
              'pytest-runner',
              'tox'
          ],
      },
      scripts=[
          'bin/shp2centerline',
      ],
      include_package_data=True,
      zip_safe=False,
  )
  
new_contents: from setuptools import setup
  
  try:
      from pypandoc import convert
  
      def read_md(markdown_file):
          return lambda f: convert(f, 'rst')
  
  except ImportError:
      print(
          "warning: pypandoc module not found, could not convert Markdown to RST"
      )
  
      def read_md(markdown_file):
          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=[
          'GDAL>=2.0.1',
          'Fiona>=1.6.3'
          'Shapely>=1.5.13',
          'numpy>=1.10.4',
          'scipy>=0.16.1',
      ],
      extras_require={
          'dev': [
              'pypandoc',
              'ipdb',
          ],
          'test': [
              'coverage',
              'pytest',
              'pytest-cov',
              'pytest-sugar',
              'pytest-runner',
              'tox'
          ],
      },
      scripts=[
          'bin/shp2centerline',
      ],
      include_package_data=True,
      zip_safe=False,
  )
  
subject: Add an argument to `read_md`