Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

vigiboard / setup.py @ fcaef033

History | View | Annotate | Download (3.59 KB)

1
#!/usr/bin/env python
2
# -*- coding: utf-8 -*-
3
# vim:set expandtab tabstop=4 shiftwidth=4:
4
# Copyright (C) 2006-2020 CS GROUP - France
5
# License: GNU GPL v2 <http://www.gnu.org/licenses/gpl-2.0.html>
6

    
7
import os
8

    
9
try:
10
    from setuptools import setup, find_packages
11
except ImportError:
12
    from ez_setup import use_setuptools
13
    use_setuptools()
14
    from setuptools import setup, find_packages
15

    
16
tests_require = [
17
    'WebTest',
18
    'BeautifulSoup',
19
    'lxml',
20
    'coverage',
21
    'gearbox',
22
]
23

    
24
sysconfdir = os.getenv("SYSCONFDIR", "/etc")
25

    
26
cmdclass = {}
27
try:
28
    from buildenv.babeljs import compile_catalog_plusjs
29
except ImportError:
30
    pass
31
else:
32
    cmdclass['compile_catalog'] = compile_catalog_plusjs
33

    
34
setup(
35
    name='vigilo-vigiboard',
36
    version='5.2.0rc1',
37
    author='Vigilo Team',
38
    author_email='contact.vigilo@csgroup.eu',
39
    zip_safe=False, # pour pouvoir d├ęplacer app_cfg.py
40
    license='http://www.gnu.org/licenses/gpl-2.0.html',
41
    description="Vigilo event board",
42
    long_description="Vigilo event board",
43
    url='https://www.vigilo-nms.com/',
44
    install_requires=[
45
        "vigilo-turbogears",
46
    ],
47
    packages=find_packages(exclude=['ez_setup', 'buildenv']),
48
    include_package_data=True,
49
    test_suite='nose.collector',
50
    tests_require=tests_require,
51
    extras_require={
52
        'tests': tests_require,
53
    },
54
    package_data={
55
        'vigiboard': [
56
            'i18n/*/LC_MESSAGES/*.mo',
57
            'i18n/*/LC_MESSAGES/*.js',
58
            'templates/*/*',
59
            'public/js/*.js',
60
        ],
61
    },
62
    message_extractors={
63
        'vigiboard': [
64
            ('**.py', 'python', None),
65
            ('**/public/js/*.js', 'javascript', None),
66
        ],
67
    },
68

    
69
    entry_points={
70
        'paste.app_factory': [
71
            'main = vigiboard.config.middleware:make_app',
72
        ],
73
        'vigilo.models': [
74
            'populate_db = vigiboard.websetup:populate_db',
75
        ],
76
        'vigiboard.columns': [
77
            'id = vigiboard.controllers.plugins.id:PluginId',
78
            'test = vigiboard.controllers.plugins.test:PluginTest',
79
            'details = vigiboard.controllers.plugins.details:PluginDetails',
80
            'date = vigiboard.controllers.plugins.date:PluginDate',
81
            'priority = vigiboard.controllers.plugins.priority:PluginPriority',
82
            'occurrences = vigiboard.controllers.plugins.occurrences:PluginOccurrences',
83
            'address = vigiboard.controllers.plugins.address:PluginAddress',
84
            'hostname = vigiboard.controllers.plugins.hostname:PluginHostname',
85
            'servicename = vigiboard.controllers.plugins.servicename:PluginServicename',
86
            'output = vigiboard.controllers.plugins.output:PluginOutput',
87
            'hls = vigiboard.controllers.plugins.hls:PluginHLS',
88
            'state = vigiboard.controllers.plugins.state:PluginState',
89
            'status = vigiboard.controllers.plugins.status:PluginStatus',
90
            'groups = vigiboard.controllers.plugins.groups:PluginGroups',
91
            'masked_events = vigiboard.controllers.plugins.masked_events:PluginMaskedEvents',
92
            'map = vigiboard.controllers.plugins.map:PluginMap',
93
        ],
94
        'vigilo.turbogears.i18n': [
95
            'vigiboard = vigiboard.i18n:100',
96
        ],
97
    },
98
    cmdclass=cmdclass,
99
    data_files=[
100
        (os.path.join(sysconfdir, 'vigilo/vigiboard/'), [
101
            'deployment/vigiboard.conf',
102
            'deployment/vigiboard.wsgi',
103
            'deployment/settings.ini',
104
            'deployment/who.ini',
105
        ]),
106
        (
107
            os.path.join(sysconfdir, 'cron.daily'),
108
            [os.path.join('pkg', 'vigilo-vigiboard.sh')]
109
        ),
110
    ],
111
)