-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
executable file
·65 lines (59 loc) · 1.96 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/usr/bin/env python
"""fdb package is a set of Firebird RDBMS bindings for python.
It works on Python 2.6+ and Python 3.x.
"""
import sys
from setuptools import setup, find_packages
from fdb_embedded import __version__
from setuptools.command.test import test as TestCommand
import build_firebird
classifiers = [
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Database',
]
class Tox(TestCommand):
user_options = [('tox-args=', 'a', "Arguments to pass to tox")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.tox_args = []
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import tox
import shlex
args = self.tox_args
if args:
args = shlex.split(self.tox_args)
errno = tox.cmdline(args=args)
sys.exit(errno)
setup(name='fdb_embedded',
version=__version__,
description = 'Firebird RDBMS bindings for Python with built in fb embedded server.',
url = "https://github.com/andrewleech/fdb_embedded",
classifiers=classifiers,
keywords=['Firebird'],
license='BSD',
author='Andrew Leech',
author_email='[email protected]',
long_description=__doc__,
install_requires=['requests'],
setup_requires=[],
tests_require=['tox'],
cmdclass = {
'test': Tox,
'build_ext': build_firebird.BuildFirebirdCommand,
},
ext_modules=build_firebird.ext_modules,
packages=find_packages(exclude=['ez_setup']),
include_package_data=False,
package_data={'fdb_embedded': ['*.txt'],
'test':'fbtest.fdb'},
zip_safe=False,
platforms=['Win32', 'Win64', 'Linux x86', 'Linux AMD64', 'Mac OS X x86_64']
)