vigiboard / setup.py @ 36f6910e
History | View | Annotate | Download (3.23 KB)
1 | 5dbfa80d | Francois POIROTTE | #!/usr/bin/env python
|
---|---|---|---|
2 | 49c8da1d | Thomas ANDREJAK | # -*- coding: utf-8 -*-
|
3 | d41c3589 | Gabriel DE PERTHUIS | # vim:set expandtab tabstop=4 shiftwidth=4:
|
4 | 703bd599 | Francois POIROTTE | # Copyright (C) 2006-2014 CS-SI
|
5 | b373a5de | Aurelien BOMPARD | # License: GNU GPL v2 <http://www.gnu.org/licenses/gpl-2.0.html>
|
6 | a43ec272 | Aurelien BOMPARD | |
7 | import os |
||
8 | |||
9 | 49c8da1d | Thomas ANDREJAK | 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 | 9265bd60 | Francois POIROTTE | tests_require = [ |
17 | 'WebTest',
|
||
18 | 'BeautifulSoup',
|
||
19 | 'lxml',
|
||
20 | 5d20c2c5 | Francois POIROTTE | 'coverage',
|
21 | 9265bd60 | Francois POIROTTE | ] |
22 | d4656036 | Gabriel DE PERTHUIS | |
23 | a43ec272 | Aurelien BOMPARD | sysconfdir = os.getenv("SYSCONFDIR", "/etc") |
24 | |||
25 | db6fbc92 | Aurelien BOMPARD | 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 | 49c8da1d | Thomas ANDREJAK | setup( |
34 | 2d135e67 | Aurelien BOMPARD | name='vigilo-vigiboard',
|
35 | d06e7923 | Francois POIROTTE | version='3.5',
|
36 | 4dabc344 | Francois POIROTTE | author='Vigilo Team',
|
37 | author_email='contact@projet-vigilo.org',
|
||
38 | 1bc5864e | Aurelien BOMPARD | zip_safe=False, # pour pouvoir déplacer app_cfg.py |
39 | 5dbfa80d | Francois POIROTTE | license='http://www.gnu.org/licenses/gpl-2.0.html',
|
40 | 04a8f09e | Aurelien BOMPARD | description="Vigilo event board",
|
41 | long_description="Vigilo event board",
|
||
42 | b3c692c6 | Francois POIROTTE | url='http://www.projet-vigilo.org/',
|
43 | 49c8da1d | Thomas ANDREJAK | install_requires=[ |
44 | 10848680 | Francois POIROTTE | "vigilo-turbogears",
|
45 | 5dbfa80d | Francois POIROTTE | "tw.forms",
|
46 | 15636990 | Francois POIROTTE | ], |
47 | 23bfcb80 | Francois POIROTTE | |
48 | 49c8da1d | Thomas ANDREJAK | packages=find_packages(exclude=['ez_setup']),
|
49 | include_package_data=True,
|
||
50 | test_suite='nose.collector',
|
||
51 | d4656036 | Gabriel DE PERTHUIS | tests_require=tests_require, |
52 | extras_require={ |
||
53 | 'tests': tests_require,
|
||
54 | 15636990 | Francois POIROTTE | }, |
55 | 5dbfa80d | Francois POIROTTE | package_data={ |
56 | 'vigiboard': [
|
||
57 | 6f56e540 | Francois POIROTTE | 'i18n/*/LC_MESSAGES/*.mo',
|
58 | db6fbc92 | Aurelien BOMPARD | 'i18n/*/LC_MESSAGES/*.js',
|
59 | 'templates/*/*',
|
||
60 | 'public/js/*.js',
|
||
61 | 5dbfa80d | Francois POIROTTE | ], |
62 | }, |
||
63 | 3be9e517 | Francois POIROTTE | message_extractors={ |
64 | 'vigiboard': [
|
||
65 | ('**.py', 'python', None), |
||
66 | db6fbc92 | Aurelien BOMPARD | ('**/public/js/*.js', 'javascript', None), |
67 | 3be9e517 | Francois POIROTTE | ], |
68 | }, |
||
69 | 49c8da1d | Thomas ANDREJAK | |
70 | d4656036 | Gabriel DE PERTHUIS | entry_points={ |
71 | 'paste.app_factory': [
|
||
72 | 'main = vigiboard.config.middleware:make_app',
|
||
73 | 15636990 | Francois POIROTTE | ], |
74 | d4656036 | Gabriel DE PERTHUIS | 'paste.app_install': [
|
75 | 'main = pylons.util:PylonsInstaller',
|
||
76 | 15636990 | Francois POIROTTE | ], |
77 | ce03ddca | Francois POIROTTE | 'vigilo.models': [
|
78 | 'populate_db = vigiboard.websetup:populate_db',
|
||
79 | 5dbfa80d | Francois POIROTTE | ], |
80 | 47bbb5b6 | Francois POIROTTE | '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 | 558ccefb | Francois POIROTTE | 'groups = vigiboard.controllers.plugins.groups:PluginGroups',
|
93 | 'masked_events = vigiboard.controllers.plugins.masked_events:PluginMaskedEvents',
|
||
94 | 47bbb5b6 | Francois POIROTTE | ] |
95 | 15636990 | Francois POIROTTE | }, |
96 | db6fbc92 | Aurelien BOMPARD | cmdclass=cmdclass, |
97 | 5dbfa80d | Francois POIROTTE | data_files=[ |
98 | a43ec272 | Aurelien BOMPARD | (os.path.join(sysconfdir, 'vigilo/vigiboard/'), [
|
99 | 5dbfa80d | Francois POIROTTE | 'deployment/vigiboard.conf',
|
100 | 'deployment/vigiboard.wsgi',
|
||
101 | 'deployment/settings.ini',
|
||
102 | b956a6cf | Aurelien BOMPARD | 'deployment/who.ini',
|
103 | 5dbfa80d | Francois POIROTTE | ]), |
104 | ], |
||
105 | 49c8da1d | Thomas ANDREJAK | ) |