old_contents: #!/usr/bin/env python
  from __future__ import with_statement
  import os
  from setuptools import setup, find_packages
  
  readme = 'README.md'
  if os.path.exists('README.rst'):
      readme = 'README.rst'
  with open(readme) as f:
      long_description = f.read()
  
  with open('requirements.txt') as f:
      requirements = [l for l in f.read().splitlines() if l]
  
  setup(
      name='xunleipy',
      version='0.3.3',
      author='lazygunner',
      author_email='gymgunner@gmail.com',
      url='https://github.com/lazygunner/xunleipy',
      packages=find_packages(),
      keywords='XunLei, xunlei, SDK',
      description='xunleipy: XunLei SDK for Python',
      long_description=long_description,
      install_requires=requirements,
      include_package_data=True,
      tests_require=['nose', 'httmock'],
      test_suite='nose.collector',
      classifiers=[
          'Development Status :: 4 - Beta',
          'License :: OSI Approved :: MIT License',
          'Operating System :: MacOS',
          'Operating System :: POSIX',
          'Operating System :: POSIX :: Linux',
          'Programming Language :: Python',
          'Programming Language :: Python :: 2.6',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3.2',
          'Programming Language :: Python :: 3.3',
          'Programming Language :: Python :: 3.4',
          'Programming Language :: Python :: Implementation :: PyPy'
      ],
  )
  
new_contents: #!/usr/bin/env python
  from __future__ import with_statement
  import os
  from setuptools import setup, find_packages
  
  readme = 'README.md'
  if os.path.exists('README.rst'):
      readme = 'README.rst'
  with open(readme) as f:
      long_description = f.read()
  
  with open('requirements.txt') as f:
      requirements = [l for l in f.read().splitlines() if l]
  
  setup(
      name='xunleipy',
      version='0.4.0',
      author='lazygunner',
      author_email='gymgunner@gmail.com',
      url='https://github.com/lazygunner/xunleipy',
      packages=find_packages(),
      keywords='XunLei, xunlei, SDK',
      description='xunleipy: XunLei SDK for Python',
      long_description=long_description,
      install_requires=requirements,
      include_package_data=True,
      tests_require=['nose', 'httmock'],
      test_suite='nose.collector',
      classifiers=[
          'Development Status :: 4 - Beta',
          'License :: OSI Approved :: MIT License',
          'Operating System :: MacOS',
          'Operating System :: POSIX',
          'Operating System :: POSIX :: Linux',
          'Programming Language :: Python',
          'Programming Language :: Python :: 2.6',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3.2',
          'Programming Language :: Python :: 3.3',
          'Programming Language :: Python :: 3.4',
          'Programming Language :: Python :: Implementation :: PyPy'
      ],
  )
  
subject: Bump version to 0.4.0