Use setuptools.find_packages() to find all packages (Fixes #154)
This commit is contained in:
33
setup.py
Normal file → Executable file
33
setup.py
Normal file → Executable 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()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user