-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathsetup.py
95 lines (84 loc) · 2.83 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
# -*- coding: utf-8 -*-
import os
import sys
from setuptools import setup, find_packages, __version__ as setuptoolsv
# Load version number
__version__ = None
setup_path = os.path.dirname(os.path.realpath(__file__))
exec(open(os.path.join(setup_path, 'temboardui', 'version.py'), 'r').read())
if setuptoolsv < '1.0':
__version__ = __version__.replace('+', '.')
# Accept Tornado 5.X on Python 2.7.9+
# Accept Tornado 6.X on Python 3+
BLEEDING_EDGE_TORNADO = '7'
if sys.version_info < (2, 7, 9):
BLEEDING_EDGE_TORNADO = '4.5'
elif sys.version_info < (3,):
BLEEDING_EDGE_TORNADO = '6'
install_requires = [
'alembic',
'python-dateutil>=1.5',
# There is no hard dependency on psycopg2 to allow using
# psycopg2-binary instead. psycopg2 is not provided by psycopg2-binary
# and there is no way to state an OR dependency in Python. It's up to
# the user or package manager to ensure psycopg2 dependency. See
# documentation.
'sqlalchemy>=0.9.8',
'tornado>=3.2,<' + BLEEDING_EDGE_TORNADO,
'future',
]
if sys.version_info < (3,):
install_requires.append('futures')
SETUP_KWARGS = dict(
name='temboard',
version=__version__, # noqa, imported by execfile.
description='temBoard User Interface.',
author='Julien Tachoires, Étienne BERSAC',
license='PostgreSQL',
install_requires=install_requires,
include_package_data=True,
zip_safe=False,
url='https://github.com/dalibo/temboard/',
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: System Administrators",
"License :: OSI Approved",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.6",
"Topic :: Database :: Database Engines/Servers",
"Topic :: System :: Monitoring",
],
data_files=[
('share/temboard', [
'share/auto_configure.sh',
'share/create_repository.sh',
'share/purge.sh',
]),
('share/temboard/sql/', [
'share/sql/dev-fixture.sql',
'share/sql/upgrade-monitoring-purge-instances.sql',
'share/sql/reassign.sql',
]),
('share/temboard/quickstart/', [
'share/temboard_CHANGEME.key',
'share/temboard_CHANGEME.pem',
'share/temboard_ca_certs_CHANGEME.pem',
'share/temboard.conf',
'share/temboard.logrotate',
]),
('lib/systemd/system', ['packaging/temboard.service']),
],
entry_points={
'console_scripts': [
'temboard = temboardui.__main__:main',
'temboard-migratedb = temboardui.migratedb:main',
],
},
)
if __name__ == '__main__':
setup(
long_description=open('README.rst').read(),
packages=find_packages(),
**SETUP_KWARGS
)