forked from dalibo/temboard-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
67 lines (64 loc) · 2.61 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')).read())
if setuptoolsv < '1.0':
__version__ = __version__.replace('+', '.')
setup(**dict(
name='temboard-agent',
version=__version__,
author='Dalibo',
author_email='[email protected]',
license='PostgreSQL',
url='http://temboard.io/',
description='PostgreSQL Remote Control Agent',
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Environment :: No Input/Output (Daemon)",
"Intended Audience :: System Administrators",
"License :: OSI Approved",
"Operating System :: POSIX :: Linux",
"Topic :: Database :: Database Engines/Servers",
"Topic :: System :: Monitoring",
],
data_files=[
('share/temboard-agent/', [
'share/temboard-agent.conf',
'share/temboard-agent.logrotate',
'share/auto_configure.sh',
'share/purge.sh',
'share/restart-all.sh',
]),
('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/[email protected]']),
],
entry_points={
'console_scripts': [
'temboard-agent = temboardagent.scripts.agent:main',
'temboard-agent-adduser = temboardagent.scripts.adduser:main',
'temboard-agent-password = temboardagent.scripts.password:main',
'temboard-agent-register = temboardagent.scripts.register:main',
],
'temboardagent.plugins': [
'activity = temboardagent.plugins.activity:ActivityPlugin',
'administration = temboardagent.plugins.administration:AdministrationPlugin', # noqa
'dashboard = temboardagent.plugins.dashboard:DashboardPlugin',
'maintenance = temboardagent.plugins.maintenance:MaintenancePlugin', # noqa
'monitoring = temboardagent.plugins.monitoring:MonitoringPlugin',
'pgconf = temboardagent.plugins.pgconf:PgConfPlugin',
'statements = temboardagent.plugins.statements:StatementsPlugin',
],
},
packages=find_packages(),
long_description=open('README.rst').read(),
))