from distutils.core import setup

from mosql import __version__

setup(
    name = 'mosql',
    description = "Build SQL with native Python data structure smoothly.",
    long_description = open('README.rst').read(),
    version = __version__,
    author = 'Mosky',
    author_email = 'mosky.tw@gmail.com',
    url = 'http://mosql.mosky.tw/',
    packages = ['mosql'],
    license = 'MIT',
    classifiers = [
        'Development Status :: 5 - Production/Stable',
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Topic :: Database :: Front-Ends',
        'Topic :: Software Development :: Libraries :: Python Modules',
    ]
)


@@ -1,67 +1,108 @@
-from distutils.core import setup%0A%0Afrom mosql import __version__
+#!/usr/bin/env python%0A# -*- coding: utf-8 -*-%0A%0Afrom setuptools import setup, find_packages%0A%0Aimport mosql
 %0A%0Ase
@@ -106,16 +106,17 @@
 %0Asetup(%0A
+%0A
     name
@@ -127,16 +127,49 @@
 mosql',%0A
+    version = mosql.__version__,%0A
     desc
@@ -289,34 +289,8 @@
 (),%0A
-    version = __version__,
 %0A   
@@ -389,34 +389,8 @@
 /',%0A
-    packages = %5B'mosql'%5D,%0A
     
@@ -824,12 +824,46 @@
 ',%0A    %5D
+,%0A%0A    packages = find_packages(),
 %0A)%0A%0A

refined the setup.py