vigigraph / setup.py @ de06ff86
History | View | Annotate | Download (2.26 KB)
1 | 0931fc44 | Thomas BURGUIERE | # -*- coding: utf-8 -*-
|
---|---|---|---|
2 | 98c1bcf7 | Thomas BURGUIERE | # vim:set expandtab tabstop=4 shiftwidth=4:
|
3 | 90a1f4ab | Aurelien BOMPARD | # Copyright (C) 2006-2011 CS-SI
|
4 | # License: GNU GPL v2 <http://www.gnu.org/licenses/gpl-2.0.html>
|
||
5 | 7c9baa43 | Francois POIROTTE | |
6 | a6ff3867 | Aurelien BOMPARD | import os |
7 | 7c9baa43 | Francois POIROTTE | |
8 | 0931fc44 | Thomas BURGUIERE | 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 | 7c9baa43 | Francois POIROTTE | 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 | 0f317fa6 | Aurelien BOMPARD | sysconfdir = os.getenv("SYSCONFDIR", "/etc") |
24 | |||
25 | 4964dc96 | Vincent QUEMENER | tests_require = [ |
26 | 'WebTest',
|
||
27 | 'BeautifulSoup',
|
||
28 | 'coverage',
|
||
29 | ] |
||
30 | |||
31 | 0931fc44 | Thomas BURGUIERE | setup( |
32 | 7f07168b | Aurelien BOMPARD | name='vigilo-vigigraph',
|
33 | de06ff86 | Aurelien BOMPARD | version='2.0.6',
|
34 | cfb90e56 | Francois POIROTTE | author='Vigilo Team',
|
35 | author_email='contact@projet-vigilo.org',
|
||
36 | 6a0204a8 | Aurelien BOMPARD | url='http://www.projet-vigilo.org',
|
37 | cfb90e56 | Francois POIROTTE | license='http://www.gnu.org/licenses/gpl-2.0.html',
|
38 | 6a0204a8 | Aurelien BOMPARD | description="Vigilo metrology interface",
|
39 | long_description="Vigilo metrology interface",
|
||
40 | 0931fc44 | Thomas BURGUIERE | install_requires=[ |
41 | 029ee76e | Thomas BURGUIERE | "vigilo-turbogears",
|
42 | 98c1bcf7 | Thomas BURGUIERE | ], |
43 | 726af8f7 | Aurelien BOMPARD | zip_safe=False, # pour pouvoir déplacer app_cfg.py |
44 | 0931fc44 | Thomas BURGUIERE | 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 | 4964dc96 | Vincent QUEMENER | tests_require=tests_require, |
49 | extras_require={ |
||
50 | 'tests': tests_require,
|
||
51 | }, |
||
52 | cfb90e56 | Francois POIROTTE | package_data={ |
53 | 'vigigraph': [
|
||
54 | 'i18n/*/LC_MESSAGES/*.mo',
|
||
55 | 7c9baa43 | Francois POIROTTE | 'i18n/*/LC_MESSAGES/*.js',
|
56 | cfb90e56 | Francois POIROTTE | 'templates/*/*',
|
57 | eaf8a7bd | Aurelien BOMPARD | 'public/js/*.js',
|
58 | cfb90e56 | Francois POIROTTE | ], |
59 | }, |
||
60 | message_extractors={ |
||
61 | 'vigigraph': [
|
||
62 | 0931fc44 | Thomas BURGUIERE | ('**.py', 'python', None), |
63 | 7c9baa43 | Francois POIROTTE | ('**/public/js/*.js', 'javascript', None), |
64 | f665ad51 | Francois POIROTTE | ], |
65 | cfb90e56 | Francois POIROTTE | }, |
66 | 0931fc44 | Thomas BURGUIERE | |
67 | 945bd396 | Francois POIROTTE | 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 | 43e9f440 | Francois POIROTTE | |
79 | 7c9baa43 | Francois POIROTTE | cmdclass=cmdclass, |
80 | 0f317fa6 | Aurelien BOMPARD | data_files=[ |
81 | eaf8a7bd | Aurelien BOMPARD | (os.path.join(sysconfdir, 'vigilo/vigigraph/'), [
|
82 | 'deployment/vigigraph.conf',
|
||
83 | 'deployment/vigigraph.wsgi',
|
||
84 | 0f317fa6 | Aurelien BOMPARD | 'deployment/settings.ini',
|
85 | 50e28645 | Aurelien BOMPARD | 'deployment/who.ini',
|
86 | 0f317fa6 | Aurelien BOMPARD | ]), |
87 | ], |
||
88 | 0931fc44 | Thomas BURGUIERE | ) |