vigigraph / setup.py @ f3a7115e
History | View | Annotate | Download (2.21 KB)
1 |
# -*- coding: utf-8 -*-
|
---|---|
2 |
# vim:set expandtab tabstop=4 shiftwidth=4:
|
3 |
# Copyright (C) 2006-2019 CS-SI
|
4 |
# License: GNU GPL v2 <http://www.gnu.org/licenses/gpl-2.0.html>
|
5 |
|
6 |
import os |
7 |
|
8 |
try:
|
9 |
from setuptools import setup, find_packages |
10 |
except ImportError: |
11 |
from ez_setup import use_setuptools |
12 |
use_setuptools() |
13 |
from setuptools import setup, find_packages |
14 |
|
15 |
cmdclass = {} |
16 |
try:
|
17 |
from buildenv.babeljs import compile_catalog_plusjs |
18 |
except ImportError: |
19 |
pass
|
20 |
else:
|
21 |
cmdclass['compile_catalog'] = compile_catalog_plusjs
|
22 |
|
23 |
sysconfdir = os.getenv("SYSCONFDIR", "/etc") |
24 |
|
25 |
tests_require = [ |
26 |
'WebTest',
|
27 |
'BeautifulSoup',
|
28 |
'coverage',
|
29 |
'gearbox',
|
30 |
] |
31 |
|
32 |
setup( |
33 |
name='vigilo-vigigraph',
|
34 |
version='5.1.0',
|
35 |
author='Vigilo Team',
|
36 |
author_email='contact.vigilo@c-s.fr',
|
37 |
url='https://www.vigilo-nms.com',
|
38 |
license='http://www.gnu.org/licenses/gpl-2.0.html',
|
39 |
description="Vigilo metrology interface",
|
40 |
long_description="Vigilo metrology interface",
|
41 |
install_requires=[ |
42 |
"vigilo-turbogears",
|
43 |
], |
44 |
zip_safe=False, # pour pouvoir déplacer app_cfg.py |
45 |
packages=find_packages(exclude=['ez_setup', 'buildenv']), |
46 |
include_package_data=True,
|
47 |
test_suite='nose.collector',
|
48 |
tests_require=tests_require, |
49 |
extras_require={ |
50 |
'tests': tests_require,
|
51 |
}, |
52 |
package_data={ |
53 |
'vigigraph': [
|
54 |
'i18n/*/LC_MESSAGES/*.mo',
|
55 |
'i18n/*/LC_MESSAGES/*.js',
|
56 |
'templates/*/*',
|
57 |
'public/js/*.js',
|
58 |
], |
59 |
}, |
60 |
message_extractors={ |
61 |
'vigigraph': [
|
62 |
('**.py', 'python', None), |
63 |
('**/public/js/*.js', 'javascript', None), |
64 |
], |
65 |
}, |
66 |
|
67 |
entry_points={ |
68 |
'paste.app_factory': [
|
69 |
'main = vigigraph.config.middleware:make_app',
|
70 |
], |
71 |
'vigilo.models': [
|
72 |
'populate_db = vigigraph.websetup:populate_db',
|
73 |
], |
74 |
'vigilo.turbogears.i18n': [
|
75 |
'vigigraph = vigigraph.i18n:100',
|
76 |
], |
77 |
}, |
78 |
|
79 |
cmdclass=cmdclass, |
80 |
data_files=[ |
81 |
(os.path.join(sysconfdir, 'vigilo/vigigraph/'), [
|
82 |
'deployment/vigigraph.conf',
|
83 |
'deployment/vigigraph.wsgi',
|
84 |
'deployment/settings.ini',
|
85 |
'deployment/who.ini',
|
86 |
]), |
87 |
], |
88 |
) |