old_contents: """
  pymagicc
  
  Thin Python wrapper around the
  reduced complexity climate model MAGICC6 (http://magicc.org/).
  
  Install using
  
      pip install pymagicc
  
  On Linux and macOS Wine (https://www.winehq.org) needs to be installed (usually
  available with your package manager).
  
  Find usage instructions in the
  GitHub repository at https://github.com/openclimatedata/pymagicc.
  """
  import versioneer
  
  from setuptools import setup
  from setuptools.command.test import test as TestCommand
  
  
  class PyTest(TestCommand):
  
      def finalize_options(self):
          TestCommand.finalize_options(self)
          self.test_args = []
          self.test_suite = True
  
      def run_tests(self):
          import pytest
          pytest.main(self.test_args)
  
  
  cmdclass = versioneer.get_cmdclass()
  cmdclass.update({"test": PyTest})
  
  setup(
      name='pymagicc',
      version=versioneer.get_version(),
      description='Python wrapper for the simple climate model MAGICC',
      long_description=__doc__,
      author='Robert Gieseke',
      author_email='robert.gieseke@pik-potsdam.de',
      url='https://github.com/openclimatedata/pymagicc',
      license='GNU Affero General Public License v3',
      keywords=[],
          classifiers=[
          "Development Status :: 4 - Beta",
          "Intended Audience :: Developers",
          "Operating System :: OS Independent",
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3.4',
          'Programming Language :: Python :: 3.5',
          'Programming Language :: Python :: 3.6'
      ],
      packages=['pymagicc'],
      package_data={'pymagicc': [
          'MAGICC6/*.txt',
          'MAGICC6/MAGICC6_4Download/*.CFG',
          'MAGICC6/MAGICC6_4Download/*.exe',
          'MAGICC6/MAGICC6_4Download/*.IN',
          'MAGICC6/MAGICC6_4Download/*.MON',
          'MAGICC6/MAGICC6_4Download/*.prn',
          'MAGICC6/MAGICC6_4Download/*.SCEN'
      ]},
      include_package_data=True,
      install_requires=['pandas', 'f90nml'],
      tests_require=['pytest'],
      cmdclass=cmdclass
  )
  
new_contents: """
  pymagicc
  
  Thin Python wrapper around the
  reduced complexity climate model MAGICC6 (http://magicc.org/).
  
  Install using
  
      pip install pymagicc
  
  On Linux and macOS Wine (https://www.winehq.org) needs to be installed (usually
  available with your package manager).
  
  Find usage instructions in the
  GitHub repository at https://github.com/openclimatedata/pymagicc.
  """
  import versioneer
  
  import os
  from setuptools import setup
  from setuptools.command.test import test as TestCommand
  
  path = os.path.abspath(os.path.dirname(__file__))
  
  
  class PyTest(TestCommand):
  
      def finalize_options(self):
          TestCommand.finalize_options(self)
          self.test_args = []
          self.test_suite = True
  
      def run_tests(self):
          import pytest
          pytest.main(self.test_args)
  
  
  with open(os.path.join(path, 'README.md'), "r") as f:
      readme = f.read()
  
  
  cmdclass = versioneer.get_cmdclass()
  cmdclass.update({"test": PyTest})
  
  setup(
      name='pymagicc',
      version=versioneer.get_version(),
      description='Python wrapper for the simple climate model MAGICC',
      long_description=readme,
      long_description_content_type="text/markdown",
      author='Robert Gieseke',
      author_email='robert.gieseke@pik-potsdam.de',
      url='https://github.com/openclimatedata/pymagicc',
      license='GNU Affero General Public License v3',
      keywords=[],
          classifiers=[
          "Development Status :: 4 - Beta",
          "Intended Audience :: Developers",
          "Operating System :: OS Independent",
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3.4',
          'Programming Language :: Python :: 3.5',
          'Programming Language :: Python :: 3.6'
      ],
      packages=['pymagicc'],
      package_data={'pymagicc': [
          'MAGICC6/*.txt',
          'MAGICC6/MAGICC6_4Download/*.CFG',
          'MAGICC6/MAGICC6_4Download/*.exe',
          'MAGICC6/MAGICC6_4Download/*.IN',
          'MAGICC6/MAGICC6_4Download/*.MON',
          'MAGICC6/MAGICC6_4Download/*.prn',
          'MAGICC6/MAGICC6_4Download/*.SCEN'
      ]},
      include_package_data=True,
      install_requires=['pandas', 'f90nml'],
      tests_require=['pytest'],
      cmdclass=cmdclass
  )
  
subject: Use Readme as long description for PyPI