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