-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
110 lines (97 loc) · 3.52 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
#!/usr/bin/env python
# vim: set et sw=4 sts=4:
# Copyright 2012 Dave Hughes.
#
# This file is part of dbsuite.
#
# dbsuite is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later
# version.
#
# dbsuite is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with
# dbsuite. If not, see <http://www.gnu.org/licenses/>.
from __future__ import (
unicode_literals,
print_function,
absolute_import,
division,
)
import os
from setuptools import setup, find_packages
from utils import description, get_version, require_python
HERE = os.path.abspath(os.path.dirname(__file__))
# Workaround <http://bugs.python.org/issue10945>
import codecs
try:
codecs.lookup('mbcs')
except LookupError:
ascii = codecs.lookup('ascii')
func = lambda name, enc=ascii: {True: enc}.get(name=='mbcs')
codecs.register(func)
require_python(0x020600f0)
REQUIRES = [
'pillow',
'pygraphviz',
]
EXTRA_REQUIRES = {
'db2': ['ibm-db'],
'pgsql': ['pg8000'],
'completion': ['optcomplete'],
}
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Environment :: Web Environment',
'Intended Audience :: System Administrators',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: Unix',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: SQL',
'Programming Language :: JavaScript',
'Programming Language :: PHP',
'Topic :: Database',
'Topic :: Documentation',
'Topic :: Text Processing :: Markup :: XML',
'Topic :: Text Processing :: Markup :: HTML',
'Topic :: Text Processing :: Markup :: LaTeX',
]
ENTRY_POINTS = {
'console_scripts': [
'dbmakedoc = dbsuite.main.dbmakedoc:main',
'dbconvdoc = dbsuite.main.dbconvdoc:main',
'dbgrepdoc = dbsuite.main.dbgrepdoc:main',
'dbtidysql = dbsuite.main.dbtidysql:main',
'dbexec = dbsuite.main.dbexec:main',
]
}
def main():
setup(
name = 'dbsuite',
version = get_version(os.path.join(HERE, 'dbsuite/__init__.py')),
description = 'A suite of tools for maintenance of information warehouses',
long_description = description(os.path.join(HERE, 'README.rst')),
classifiers = CLASSIFIERS,
author = 'Dave Hughes',
author_email = '[email protected]',
url = 'http://www.waveform.org.uk/trac/dbsuite/',
keywords = 'database documentation',
packages = find_packages(exclude=['distribute_setup', 'utils']),
include_package_data = True,
platforms = 'ALL',
install_requires = REQUIRES,
extras_require = EXTRA_REQUIRES,
zip_safe = False,
test_suite = 'dbsuite',
entry_points = ENTRY_POINTS,
)
if __name__ == '__main__':
main()