old_contents: from setuptools import setup, find_packages
  import sys, os
  
  version = '1.0.1'
  
  # Set common test dependencies
  test_dependencies = [
      'mock',
      'nose',
  ]
  
  if sys.version_info < (2, 7):
      test_dependencies.append('argparse')
      test_dependencies.append('unittest2')
  
  # Note: The package maintainer needs pypandoc and pygments to properly convert
  # the Markdown-formatted README into RestructuredText before uploading to PyPi
  # See https://bitbucket.org/pypa/pypi/issues/148/support-markdown-for-readmes
  try:
      import pypandoc
      long_description=pypandoc.convert('README.md', 'rst')
  except(IOError, ImportError):
      long_description=open('README.md').read()
  
  setup(name='b2handle',
        version=version,
        description=('Library for management of handles '
                     'in the EUDAT project.'),
        long_description=long_description,
        classifiers=[
            'Development Status :: 4 - Beta',
            'Programming Language :: Python :: 2',
            'Programming Language :: Python :: 2.6',
            'Programming Language :: Python :: 2.7',
            'Intended Audience :: Developers',
            'Topic :: Software Development :: Libraries :: Python Modules',
        ],
        keywords=['handles', 'PIDs'],
        author='EUDAT project, subtask 5.3.3',
        author_email='buurman@dkrz.de',
        url='http://eudat-b2safe.github.io/B2HANDLE',
        download_url='https://github.com/EUDAT-B2SAFE/B2HANDLE',
        packages=['b2handle', 'b2handle/tests'],
        zip_safe=False,
        install_requires=[
            'requests',
            'uuid',
            'datetime',
        ],
        tests_require=test_dependencies,
        test_suite="nose.collector",
  )
  
new_contents: from setuptools import setup, find_packages
  import sys, os
  
  version = '1.0.2'
  
  # Set common test dependencies
  test_dependencies = [
      'mock',
      'nose',
  ]
  
  if sys.version_info < (2, 7):
      test_dependencies.append('argparse')
      test_dependencies.append('unittest2')
  
  # Note: The package maintainer needs pypandoc and pygments to properly convert
  # the Markdown-formatted README into RestructuredText before uploading to PyPi
  # See https://bitbucket.org/pypa/pypi/issues/148/support-markdown-for-readmes
  try:
      import pypandoc
      long_description=pypandoc.convert('README.md', 'rst')
  except(IOError, ImportError):
      long_description=open('README.md').read()
  
  setup(name='b2handle',
        version=version,
        description=('Library for management of handles '
                     'in the EUDAT project.'),
        long_description=long_description,
        classifiers=[
            'Development Status :: 4 - Beta',
            'Programming Language :: Python :: 2',
            'Programming Language :: Python :: 2.6',
            'Programming Language :: Python :: 2.7',
            'Intended Audience :: Developers',
            'Topic :: Software Development :: Libraries :: Python Modules',
        ],
        keywords=['handles', 'PIDs'],
        author='EUDAT project, subtask 5.3.3',
        author_email='buurman@dkrz.de',
        url='http://eudat-b2safe.github.io/B2HANDLE',
        download_url='https://github.com/EUDAT-B2SAFE/B2HANDLE',
        packages=['b2handle', 'b2handle/tests'],
        zip_safe=False,
        install_requires=[
            'requests',
            'uuid',
            'datetime',
        ],
        tests_require=test_dependencies,
        test_suite="nose.collector",
  )
  
subject: Set version to 1.0.2 - next release