]> git.phdru.name Git - sqlconvert.git/blob - setup.py
Version 0.1.2: Fix dependencies
[sqlconvert.git] / setup.py
1 #!/usr/bin/env python
2
3 from imp import load_source
4 from os.path import abspath, dirname, join
5
6 try:
7     from setuptools import setup
8     is_setuptools = True
9 except ImportError:
10     from distutils.core import setup
11     is_setuptools = False
12
13 versionpath = join(abspath(dirname(__file__)), 'sqlconvert', '__version__.py')
14 load_source('sqlconvert_version', versionpath)
15 # Ignore: E402 module level import not at top of file
16 from sqlconvert_version import __version__  # noqa
17
18 kw = {}
19 if is_setuptools:
20     kw['install_requires'] = [
21         'sqlparse', 'SQLObject>=2.2.1', 'm_lib.defenc>=1.0', 'm_lib>=3.1',
22     ]
23
24 setup(name='sqlconvert',
25       version=__version__,
26       description='Broytman sqlconvert',
27       long_description=open('README.txt', 'rtU').read(),
28       author='Oleg Broytman',
29       author_email='phd@phdru.name',
30       url='http://phdru.name/Software/Python/',
31       license='GPL',
32       platforms=['any'],
33       keywords=[''],
34       classifiers=[
35           'Development Status :: 3 - Alpha',
36           'Environment :: Console',
37           'Intended Audience :: Developers',
38           'License :: OSI Approved :: GNU General Public License (GPL)',
39           'Operating System :: OS Independent',
40           'Programming Language :: Python :: 2',
41           'Programming Language :: Python :: 2.6',
42           'Programming Language :: Python :: 2.7',
43           'Programming Language :: Python :: 3',
44           'Programming Language :: Python :: 3.4',
45       ],
46       packages=['sqlconvert'],
47       package_data={},
48       scripts=['scripts/mysql2sql'],
49       **kw
50       )