vigigraph / setup.py @ 6bb22740
History | View | Annotate | Download (2.1 KB)
1 | 0931fc44 | Thomas BURGUIERE | # -*- coding: utf-8 -*-
|
---|---|---|---|
2 | 98c1bcf7 | Thomas BURGUIERE | # vim:set expandtab tabstop=4 shiftwidth=4:
|
3 | 6df90afb | Francois POIROTTE | # Copyright (C) 2006-2016 CS-SI
|
4 | 90a1f4ab | Aurelien BOMPARD | # 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 | 24097891 | Francois POIROTTE | 'gearbox',
|
30 | 4964dc96 | Vincent QUEMENER | ] |
31 | |||
32 | 0931fc44 | Thomas BURGUIERE | setup( |
33 | 7f07168b | Aurelien BOMPARD | name='vigilo-vigigraph',
|
34 | 380920ce | Francois POIROTTE | version='4.1.0rc1',
|
35 | cfb90e56 | Francois POIROTTE | author='Vigilo Team',
|
36 | 6bb22740 | Francois POIROTTE | author_email='contact.vigilo@c-s.fr',
|
37 | url='http://www.vigilo-nms.com',
|
||
38 | cfb90e56 | Francois POIROTTE | license='http://www.gnu.org/licenses/gpl-2.0.html',
|
39 | 6a0204a8 | Aurelien BOMPARD | description="Vigilo metrology interface",
|
40 | long_description="Vigilo metrology interface",
|
||
41 | 0931fc44 | Thomas BURGUIERE | install_requires=[ |
42 | 029ee76e | Thomas BURGUIERE | "vigilo-turbogears",
|
43 | 98c1bcf7 | Thomas BURGUIERE | ], |
44 | 726af8f7 | Aurelien BOMPARD | zip_safe=False, # pour pouvoir déplacer app_cfg.py |
45 | 0931fc44 | Thomas BURGUIERE | 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 | 'vigilo.models': [
|
||
72 | 'populate_db = vigigraph.websetup:populate_db',
|
||
73 | ], |
||
74 | }, |
||
75 | 43e9f440 | Francois POIROTTE | |
76 | 7c9baa43 | Francois POIROTTE | cmdclass=cmdclass, |
77 | 0f317fa6 | Aurelien BOMPARD | data_files=[ |
78 | eaf8a7bd | Aurelien BOMPARD | (os.path.join(sysconfdir, 'vigilo/vigigraph/'), [
|
79 | 'deployment/vigigraph.conf',
|
||
80 | 'deployment/vigigraph.wsgi',
|
||
81 | 0f317fa6 | Aurelien BOMPARD | 'deployment/settings.ini',
|
82 | 50e28645 | Aurelien BOMPARD | 'deployment/who.ini',
|
83 | 0f317fa6 | Aurelien BOMPARD | ]), |
84 | ], |
||
85 | 0931fc44 | Thomas BURGUIERE | ) |