old_contents: #!/usr/bin/env python
  # encoding: utf8
  
  from setuptools import setup
  import os
  
  here = os.path.dirname(os.path.abspath(__file__))
  
  def readme():
      "Falls back to just file().read() on any error, because the conversion to rst is only really relevant when uploading the package to pypi"
      from subprocess import CalledProcessError
      try:
          from subprocess import check_output
          return str(check_output(['pandoc', '--from', 'markdown', '--to', 'rst', os.path.join(here, 'README.md')]))
      except (ImportError, OSError, CalledProcessError) as error:
          print('python2.6 and pandoc is required to get the description as rst (as required to get nice rendering in pypi) - using the original markdown instead.',
                'See http://johnmacfarlane.net/pandoc/')
      return str(open(os.path.join(here, 'README.md')).read())
  
  setup_args = dict(
      name='fluentpy',
      version='1.0.0',
      description='Python wrapper for stdlib (and your) objects to give them a fluent interface.',
      long_description=readme(),
      url='https://github.com/dwt/fluent',
      author='Martin Häcker',
      author_email='mhaecker@mac.com',
      license='ISC',
      classifiers=(
          'Development Status :: 5 - Production/Stable',
          'Environment :: Console',
          'Intended Audience :: Developers',
          'Topic :: Software Development :: Libraries',
          'Topic :: Utilities',
          'License :: OSI Approved :: ISC License (ISCL)',
          'Programming Language :: Python :: 3',
      ),
      keywords='wrapper,smalltalk,ruby,fluent,interface,functional',
      py_modules=['fluentpy'],
      python_requires='>=3.5',
      include_package_data=True,
      test_suite="fluent_test.py",
      tests_require=(
          'pyexpect',
          # Release-Dependencies
          'pypandoc', # just to get pandoc - which we use directly
          'twine', # to upload releases
      ),
  )
  
  if __name__ == '__main__':
      setup(**setup_args)
  
new_contents: #!/usr/bin/env python
  # encoding: utf8
  
  from setuptools import setup
  import os
  
  here = os.path.dirname(os.path.abspath(__file__))
  
  def readme():
      "Falls back to just file().read() on any error, because the conversion to rst is only really relevant when uploading the package to pypi"
      from subprocess import CalledProcessError
      try:
          from subprocess import check_output
          return str(check_output(['pandoc', '--from', 'markdown', '--to', 'rst', os.path.join(here, 'README.md')]), 'utf8')
      except (ImportError, OSError, CalledProcessError) as error:
          print('python2.6 and pandoc is required to get the description as rst (as required to get nice rendering in pypi) - using the original markdown instead.',
                'See http://johnmacfarlane.net/pandoc/')
      return str(open(os.path.join(here, 'README.md')).read())
  
  setup_args = dict(
      name='fluentpy',
      version='1.0.1',
      description='Python wrapper for stdlib (and your) objects to give them a fluent interface.',
      long_description=readme(),
      url='https://github.com/dwt/fluent',
      author='Martin Häcker',
      author_email='mhaecker@mac.com',
      license='ISC',
      classifiers=(
          'Development Status :: 5 - Production/Stable',
          'Environment :: Console',
          'Intended Audience :: Developers',
          'Topic :: Software Development :: Libraries',
          'Topic :: Utilities',
          'License :: OSI Approved :: ISC License (ISCL)',
          'Programming Language :: Python :: 3',
      ),
      keywords='wrapper,smalltalk,ruby,fluent,interface,functional',
      py_modules=['fluentpy'],
      python_requires='>=3.5',
      include_package_data=True,
      test_suite="fluent_test.py",
      tests_require=(
          'pyexpect',
          # Release-Dependencies
          'pypandoc', # just to get pandoc - which we use directly
          'twine', # to upload releases
      ),
  )
  
  if __name__ == '__main__':
      setup(**setup_args)
  
subject: Fix encoding issue