old_contents: try:
      from setuptools import setup, Command
  except ImportError:
      from distutils.core import setup, Command
  
  version_tuple = __import__('pymysql').VERSION
  
  if version_tuple[2] is not None:
      version = "%d.%d_%s" % version_tuple
  else:
      version = "%d.%d" % version_tuple[:2]
  
  setup(
      name = "PyMySQL",
      version = version,
      url = 'https://github.com/petehunt/PyMySQL/',
      author = 'yutaka.matsubara',
      author_email = 'yutaka.matsubara@gmail.com',
      maintainer = 'Pete Hunt',
      maintainer_email = 'floydophone@gmail.com',
      description = 'Pure Python MySQL Driver ',
      license = "MIT",
      packages = ['pymysql', 'pymysql.constants', 'pymysql.tests'],
  )
  
new_contents: #!/usr/bin/env python
  from setuptools import setup, find_packages
  
  version_tuple = __import__('pymysql').VERSION
  
  if version_tuple[2] is not None:
      version = "%d.%d_%s" % version_tuple
  else:
      version = "%d.%d" % version_tuple[:2]
  
  try:
      with open('README.rst') as f:
          readme = f.read()
  except IOError:
      readme = ''
  
  setup(
      name="PyMySQL",
      version=version,
      url='https://github.com/PyMySQL/PyMySQL/',
      author='yutaka.matsubara',
      author_email='yutaka.matsubara@gmail.com',
      maintainer='Pete Hunt',
      maintainer_email='floydophone@gmail.com',
      description='Pure Python MySQL Driver',
      long_description=readme,
      license="MIT",
      packages=find_packages()
  )
  
subject: Use setuptools.find_packages() to find all packages (Fixes #154)