vigiboard / setup.py @ 2b6dd390
History | View | Annotate | Download (3.39 KB)
1 |
#!/usr/bin/env python
|
---|---|
2 |
# -*- coding: utf-8 -*-
|
3 |
# vim:set expandtab tabstop=4 shiftwidth=4:
|
4 |
# Copyright (C) 2006-2016 CS-SI
|
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 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='4.0.1',
|
37 |
author='Vigilo Team',
|
38 |
author_email='contact@projet-vigilo.org',
|
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='http://www.projet-vigilo.org/',
|
44 |
install_requires=[ |
45 |
"vigilo-turbogears",
|
46 |
], |
47 |
|
48 |
packages=find_packages(exclude=['ez_setup']),
|
49 |
include_package_data=True,
|
50 |
test_suite='nose.collector',
|
51 |
tests_require=tests_require, |
52 |
extras_require={ |
53 |
'tests': tests_require,
|
54 |
}, |
55 |
package_data={ |
56 |
'vigiboard': [
|
57 |
'i18n/*/LC_MESSAGES/*.mo',
|
58 |
'i18n/*/LC_MESSAGES/*.js',
|
59 |
'templates/*/*',
|
60 |
'public/js/*.js',
|
61 |
], |
62 |
}, |
63 |
message_extractors={ |
64 |
'vigiboard': [
|
65 |
('**.py', 'python', None), |
66 |
('**/public/js/*.js', 'javascript', None), |
67 |
], |
68 |
}, |
69 |
|
70 |
entry_points={ |
71 |
'paste.app_factory': [
|
72 |
'main = vigiboard.config.middleware:make_app',
|
73 |
], |
74 |
'vigilo.models': [
|
75 |
'populate_db = vigiboard.websetup:populate_db',
|
76 |
], |
77 |
'vigiboard.columns': [
|
78 |
'id = vigiboard.controllers.plugins.id:PluginId',
|
79 |
'test = vigiboard.controllers.plugins.test:PluginTest',
|
80 |
'details = vigiboard.controllers.plugins.details:PluginDetails',
|
81 |
'date = vigiboard.controllers.plugins.date:PluginDate',
|
82 |
'priority = vigiboard.controllers.plugins.priority:PluginPriority',
|
83 |
'occurrences = vigiboard.controllers.plugins.occurrences:PluginOccurrences',
|
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 |
}, |
95 |
cmdclass=cmdclass, |
96 |
data_files=[ |
97 |
(os.path.join(sysconfdir, 'vigilo/vigiboard/'), [
|
98 |
'deployment/vigiboard.conf',
|
99 |
'deployment/vigiboard.wsgi',
|
100 |
'deployment/settings.ini',
|
101 |
'deployment/who.ini',
|
102 |
]), |
103 |
( |
104 |
os.path.join(sysconfdir, 'cron.daily'),
|
105 |
[os.path.join('pkg', 'vigilo-vigiboard.sh')] |
106 |
), |
107 |
], |
108 |
) |