vigigraph / setup.py @ 7c9baa43
History | View | Annotate | Download (2 KB)
1 | 0931fc44 | Thomas BURGUIERE | # -*- coding: utf-8 -*-
|
---|---|---|---|
2 | 98c1bcf7 | Thomas BURGUIERE | # vim:set expandtab tabstop=4 shiftwidth=4:
|
3 | 7c9baa43 | Francois POIROTTE | |
4 | a6ff3867 | Aurelien BOMPARD | import os |
5 | 7c9baa43 | Francois POIROTTE | |
6 | 0931fc44 | Thomas BURGUIERE | try:
|
7 | from setuptools import setup, find_packages |
||
8 | except ImportError: |
||
9 | from ez_setup import use_setuptools |
||
10 | use_setuptools() |
||
11 | from setuptools import setup, find_packages |
||
12 | |||
13 | 7c9baa43 | Francois POIROTTE | cmdclass = {} |
14 | try:
|
||
15 | from babeljs import compile_catalog_plusjs |
||
16 | except ImportError: |
||
17 | pass
|
||
18 | else:
|
||
19 | cmdclass['compile_catalog'] = compile_catalog_plusjs
|
||
20 | |||
21 | 0f317fa6 | Aurelien BOMPARD | sysconfdir = os.getenv("SYSCONFDIR", "/etc") |
22 | |||
23 | 4964dc96 | Vincent QUEMENER | tests_require = [ |
24 | 'WebTest',
|
||
25 | 'BeautifulSoup',
|
||
26 | 'coverage',
|
||
27 | ] |
||
28 | |||
29 | 0931fc44 | Thomas BURGUIERE | setup( |
30 | name='vigigraph',
|
||
31 | 8f92b47d | Aurelien BOMPARD | version='2.0.0',
|
32 | 0931fc44 | Thomas BURGUIERE | description='',
|
33 | cfb90e56 | Francois POIROTTE | author='Vigilo Team',
|
34 | author_email='contact@projet-vigilo.org',
|
||
35 | 0931fc44 | Thomas BURGUIERE | #url='',
|
36 | cfb90e56 | Francois POIROTTE | license='http://www.gnu.org/licenses/gpl-2.0.html',
|
37 | 0931fc44 | Thomas BURGUIERE | install_requires=[ |
38 | 029ee76e | Thomas BURGUIERE | "vigilo-turbogears",
|
39 | 98c1bcf7 | Thomas BURGUIERE | ], |
40 | 0931fc44 | Thomas BURGUIERE | paster_plugins=['PasteScript', 'Pylons', 'TurboGears2', 'tg.devtools'], |
41 | packages=find_packages(exclude=['ez_setup']),
|
||
42 | include_package_data=True,
|
||
43 | test_suite='nose.collector',
|
||
44 | 4964dc96 | Vincent QUEMENER | tests_require=tests_require, |
45 | extras_require={ |
||
46 | 'tests': tests_require,
|
||
47 | }, |
||
48 | cfb90e56 | Francois POIROTTE | package_data={ |
49 | 'vigigraph': [
|
||
50 | 'i18n/*/LC_MESSAGES/*.mo',
|
||
51 | 7c9baa43 | Francois POIROTTE | 'i18n/*/LC_MESSAGES/*.js',
|
52 | cfb90e56 | Francois POIROTTE | 'templates/*/*',
|
53 | eaf8a7bd | Aurelien BOMPARD | 'public/js/*.js',
|
54 | cfb90e56 | Francois POIROTTE | ], |
55 | }, |
||
56 | message_extractors={ |
||
57 | 'vigigraph': [
|
||
58 | 0931fc44 | Thomas BURGUIERE | ('**.py', 'python', None), |
59 | 7c9baa43 | Francois POIROTTE | ('**/public/js/*.js', 'javascript', None), |
60 | f665ad51 | Francois POIROTTE | ], |
61 | cfb90e56 | Francois POIROTTE | }, |
62 | 0931fc44 | Thomas BURGUIERE | |
63 | 945bd396 | Francois POIROTTE | entry_points={ |
64 | 'paste.app_factory': [
|
||
65 | 'main = vigigraph.config.middleware:make_app',
|
||
66 | ], |
||
67 | 'paste.app_install': [
|
||
68 | 'main = pylons.util:PylonsInstaller',
|
||
69 | ], |
||
70 | 'vigilo.models': [
|
||
71 | 'populate_db = vigigraph.websetup:populate_db',
|
||
72 | ], |
||
73 | }, |
||
74 | 43e9f440 | Francois POIROTTE | |
75 | 7c9baa43 | Francois POIROTTE | cmdclass=cmdclass, |
76 | 0f317fa6 | Aurelien BOMPARD | data_files=[ |
77 | eaf8a7bd | Aurelien BOMPARD | (os.path.join(sysconfdir, 'vigilo/vigigraph/'), [
|
78 | 'deployment/vigigraph.conf',
|
||
79 | 'deployment/vigigraph.wsgi',
|
||
80 | 0f317fa6 | Aurelien BOMPARD | 'deployment/settings.ini',
|
81 | 50e28645 | Aurelien BOMPARD | 'deployment/who.ini',
|
82 | 0f317fa6 | Aurelien BOMPARD | ]), |
83 | ], |
||
84 | 0931fc44 | Thomas BURGUIERE | ) |