]> git.phdru.name Git - sqlconvert.git/blob - setup.py
Docs: Remove -O2 from installation instructions
[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',
22         'm_lib>=3.1',
23         'm_lib.defenc>=1.0',
24         'SQLObject>=2.2.1; python_version=="2.7"',
25         'SQLObject>=3.0.0; python_version>="3.4"',
26     ]
27
28     kw['python_requires'] = '>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*'
29
30 setup(name='sqlconvert',
31       version=__version__,
32       description='Broytman sqlconvert',
33       long_description=open('README.rst', 'rU').read(),
34       author='Oleg Broytman',
35       author_email='phd@phdru.name',
36       url='http://phdru.name/Software/Python/sqlconvert/',
37       license='GPL',
38       keywords=['sql', 'mysql', 'postgresql', 'sqlite', 'insert'],
39       platforms='Any',
40       classifiers=[
41           'Development Status :: 3 - Alpha',
42           'Environment :: Console',
43           'Intended Audience :: Developers',
44           'License :: OSI Approved :: GNU General Public License (GPL)',
45           'Operating System :: OS Independent',
46           'Programming Language :: Python :: 2',
47           'Programming Language :: Python :: 2.7',
48           'Programming Language :: Python :: 3',
49           'Programming Language :: Python :: 3.4',
50           'Programming Language :: Python :: 3.5',
51           'Programming Language :: Python :: 3.6',
52       ],
53       packages=['sqlconvert'],
54       scripts=['scripts/mysql2sql'],
55       **kw
56       )