Use setuptools.find_packages() to find all packages (Fixes #154)

This commit is contained in:
INADA Naoki
2013-09-24 08:55:56 +09:00
parent 590f6261f2
commit 8050caff6d

33
setup.py Normal file → Executable file
View File

@@ -1,7 +1,5 @@
try:
from setuptools import setup, Command
except ImportError:
from distutils.core import setup, Command
#!/usr/bin/env python
from setuptools import setup, find_packages
version_tuple = __import__('pymysql').VERSION
@@ -10,15 +8,22 @@ if version_tuple[2] is not None:
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/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'],
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()
)