forked from dalibo/temboard-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
67 lines (63 loc) · 2.26 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
from setuptools import setup, find_packages, __version__ as setuptoolsv
import os
# Load version number
__version__ = None
setup_path = os.path.dirname(os.path.realpath(__file__))
exec(open(os.path.join(setup_path, 'temboardagent', 'version.py'), 'r').read())
if setuptoolsv < '1.0':
__version__ = __version__.replace('+', '.')
SETUP_KWARGS = dict(
name='temboard-agent',
version=__version__,
author='Dalibo',
author_email='[email protected]',
license='PostgreSQL',
url='http://temboard.io/',
description='Administration & monitoring PostgreSQL agent.',
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: No Input/Output (Daemon)",
"Intended Audience :: System Administrators",
"License :: OSI Approved",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Topic :: Database :: Database Engines/Servers",
"Topic :: System :: Monitoring",
],
scripts=[
'temboard-agent',
'temboard-agent-adduser',
'temboard-agent-password',
'temboard-agent-register',
],
data_files=[
('share/temboard-agent/', [
'share/temboard-agent.conf',
'share/temboard-agent.logrotate',
]),
('share/temboard-agent/quickstart/', [
'share/temboard-agent.conf',
'share/temboard-agent_CHANGEME.pem',
'share/temboard-agent_CHANGEME.key',
'share/temboard-agent_ca_certs_CHANGEME.pem',
'share/temboard-agent.logrotate',
'share/users',
]),
('lib/systemd/system', ['packaging/temboard-agent.service']),
],
entry_points={
'temboardagent.plugins': [
'activity = temboardagent.plugins.activity:ActivityPlugin',
'administration = temboardagent.plugins.administration:AdministrationPlugin', # noqa
'dashboard = temboardagent.plugins.dashboard:DashboardPlugin',
'monitoring = temboardagent.plugins.monitoring:MonitoringPlugin',
'pgconf = temboardagent.plugins.pgconf:PgConfPlugin',
],
},
)
if __name__ == '__main__':
setup(**dict(
SETUP_KWARGS,
packages=find_packages(),
long_description=open('README.rst').read(),
))