old_contents: #!/usr/bin/env python
  
  from os.path import join
  from setuptools import setup, find_packages
  
  
  name = 'geokey-sapelli'
  version = __import__(name.replace('-', '_')).__version__
  repository = join('https://github.com/ExCiteS', name)
  
  setup(
      name=name,
      version=version,
      description='Read Sapelli project and load data from CSVs to GeoKey',
      url=repository,
      download_url=join(repository, 'tarball', version),
      author='ExCiteS',
      author_email='excites@ucl.ac.uk',
      packages=find_packages(exclude=['*.tests', '*.tests.*', 'tests.*']),
      include_package_data=True,
      install_requires=['qrcode==5.2.2'],
  )
  
new_contents: #!/usr/bin/env python
  
  from os.path import dirname, join
  from setuptools import setup, find_packages
  
  
  def read(file_name):
      with open(join(dirname(__file__), file_name)) as file_object:
          return file_object.read()
  
  
  name = 'geokey-sapelli'
  version = __import__(name.replace('-', '_')).__version__
  repository = join('https://github.com/ExCiteS', name)
  
  setup(
      name=name,
      version=version,
      description='Read Sapelli project and load data from CSVs to GeoKey',
      long_description=read('README.rst'),
      url=repository,
      download_url=join(repository, 'tarball', version),
      author='ExCiteS',
      author_email='excites@ucl.ac.uk',
      packages=find_packages(exclude=['*.tests', '*.tests.*', 'tests.*']),
      include_package_data=True,
      install_requires=['qrcode==5.2.2'],
  )
  
subject: Include README for PyPI release