<commit_before>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 = '<EMAIL>',
    maintainer = '<NAME>',
    maintainer_email = '<EMAIL>',
    description = 'Pure Python MySQL Driver ',
    license = "MIT",
    packages = ['pymysql', 'pymysql.constants', 'pymysql.tests'],
)<commit_msg>Use setuptools.find_packages() to find all packages (Fixes #154)<commit_after>#!/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='<EMAIL>',
    maintainer='<NAME>',
    maintainer_email='<EMAIL>',
    description='Pure Python MySQL Driver',
    long_description=readme,
    license="MIT",
    packages=find_packages()
)
{'fraction_non_alphanumeric': 0.15021156558533144, 'fraction_numerical': 0.004936530324400564, 'mean_word_length': 3.8762886597938144, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6280755', 'n_tokens_mistral': 500, 'n_tokens_neox': 493, 'n_words': 106}