vigigraph / setup.py @ 4a4e1e3a
History | View | Annotate | Download (2.26 KB)
1 |
# -*- coding: utf-8 -*-
|
---|---|
2 |
# vim:set expandtab tabstop=4 shiftwidth=4:
|
3 |
# Copyright (C) 2006-2014 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 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 |
] |
30 |
|
31 |
setup( |
32 |
name='vigilo-vigigraph',
|
33 |
version='3.5',
|
34 |
author='Vigilo Team',
|
35 |
author_email='contact@projet-vigilo.org',
|
36 |
url='http://www.projet-vigilo.org',
|
37 |
license='http://www.gnu.org/licenses/gpl-2.0.html',
|
38 |
description="Vigilo metrology interface",
|
39 |
long_description="Vigilo metrology interface",
|
40 |
install_requires=[ |
41 |
"vigilo-turbogears",
|
42 |
], |
43 |
zip_safe=False, # pour pouvoir déplacer app_cfg.py |
44 |
paster_plugins=['PasteScript', 'Pylons', 'TurboGears2', 'tg.devtools'], |
45 |
packages=find_packages(exclude=['ez_setup']),
|
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 |
'paste.app_install': [
|
72 |
'main = pylons.util:PylonsInstaller',
|
73 |
], |
74 |
'vigilo.models': [
|
75 |
'populate_db = vigigraph.websetup:populate_db',
|
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 |
) |