vigiboard / setup.py @ 9515d85d
History | View | Annotate | Download (3.23 KB)
1 |
#!/usr/bin/env python
|
---|---|
2 |
# -*- coding: utf-8 -*-
|
3 |
# vim:set expandtab tabstop=4 shiftwidth=4:
|
4 |
# Copyright (C) 2006-2013 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 |
] |
22 |
|
23 |
sysconfdir = os.getenv("SYSCONFDIR", "/etc") |
24 |
|
25 |
cmdclass = {} |
26 |
try:
|
27 |
from babeljs import compile_catalog_plusjs |
28 |
except ImportError: |
29 |
pass
|
30 |
else:
|
31 |
cmdclass['compile_catalog'] = compile_catalog_plusjs
|
32 |
|
33 |
setup( |
34 |
name='vigilo-vigiboard',
|
35 |
version='3.3',
|
36 |
author='Vigilo Team',
|
37 |
author_email='contact@projet-vigilo.org',
|
38 |
zip_safe=False, # pour pouvoir déplacer app_cfg.py |
39 |
license='http://www.gnu.org/licenses/gpl-2.0.html',
|
40 |
description="Vigilo event board",
|
41 |
long_description="Vigilo event board",
|
42 |
url='http://www.projet-vigilo.org/',
|
43 |
install_requires=[ |
44 |
"vigilo-turbogears",
|
45 |
"tw.forms",
|
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 |
'paste.app_install': [
|
75 |
'main = pylons.util:PylonsInstaller',
|
76 |
], |
77 |
'vigilo.models': [
|
78 |
'populate_db = vigiboard.websetup:populate_db',
|
79 |
], |
80 |
'vigiboard.columns': [
|
81 |
'id = vigiboard.controllers.plugins.id:PluginId',
|
82 |
'test = vigiboard.controllers.plugins.test:PluginTest',
|
83 |
'details = vigiboard.controllers.plugins.details:PluginDetails',
|
84 |
'date = vigiboard.controllers.plugins.date:PluginDate',
|
85 |
'priority = vigiboard.controllers.plugins.priority:PluginPriority',
|
86 |
'occurrences = vigiboard.controllers.plugins.occurrences:PluginOccurrences',
|
87 |
'hostname = vigiboard.controllers.plugins.hostname:PluginHostname',
|
88 |
'servicename = vigiboard.controllers.plugins.servicename:PluginServicename',
|
89 |
'output = vigiboard.controllers.plugins.output:PluginOutput',
|
90 |
'hls = vigiboard.controllers.plugins.hls:PluginHLS',
|
91 |
'status = vigiboard.controllers.plugins.status:PluginStatus',
|
92 |
'groups = vigiboard.controllers.plugins.groups:PluginGroups',
|
93 |
'masked_events = vigiboard.controllers.plugins.masked_events:PluginMaskedEvents',
|
94 |
] |
95 |
}, |
96 |
cmdclass=cmdclass, |
97 |
data_files=[ |
98 |
(os.path.join(sysconfdir, 'vigilo/vigiboard/'), [
|
99 |
'deployment/vigiboard.conf',
|
100 |
'deployment/vigiboard.wsgi',
|
101 |
'deployment/settings.ini',
|
102 |
'deployment/who.ini',
|
103 |
]), |
104 |
], |
105 |
) |