old_contents: from setuptools import setup, find_packages
  import versioneer
  
  project_name = 'hdf5able'
  
  # Versioneer allows us to automatically generate versioning from
  # our git tagging system which makes releases simpler.
  versioneer.VCS = 'git'
  versioneer.versionfile_source = '{}/_version.py'.format(project_name)
  versioneer.versionfile_build = '{}/_version.py'.format(project_name)
  versioneer.tag_prefix = 'v'  # tags are like v1.2.0
  versioneer.parentdir_prefix = project_name + '-'  # dirname like 'menpo-v1.2.0'
  
  setup(name=project_name,
        version=versioneer.get_version(),
        cmdclass=versioneer.get_cmdclass(),
        description='Efficient serialisation interface from ndarray-focused objects to HDF5',
        author='James Booth',
        author_email='james.booth08@imperial.ac.uk',
        packages=find_packages(),
        install_requires=['numpy>=1.8.2',
                          'h5py>=2.3.0',
                          'pathlib>=1.0'])
  
new_contents: from setuptools import setup, find_packages
  import sys
  import versioneer
  
  project_name = 'hdf5able'
  
  # Versioneer allows us to automatically generate versioning from
  # our git tagging system which makes releases simpler.
  versioneer.VCS = 'git'
  versioneer.versionfile_source = '{}/_version.py'.format(project_name)
  versioneer.versionfile_build = '{}/_version.py'.format(project_name)
  versioneer.tag_prefix = 'v'  # tags are like v1.2.0
  versioneer.parentdir_prefix = project_name + '-'  # dirname like 'menpo-v1.2.0'
  
  
  requirements = ['numpy>=1.8.2',
                  'h5py>=2.3.0']
  
  if sys.version_info.major == 2:
      requirements.extend(['pathlib>=1.0',
                           'mock>=1.0.1'])
  
  setup(name=project_name,
        version=versioneer.get_version(),
        cmdclass=versioneer.get_cmdclass(),
        description='Efficient serialisation interface from ndarray-focused objects to HDF5',
        author='James Booth',
        author_email='james.booth08@imperial.ac.uk',
        packages=find_packages(),
        install_requires=requirements)
  
subject: improve setup.py for python 3 (exclude mock pathlib)