vigigraph / setup.py @ e5dd2dbf
History | View | Annotate | Download (2 KB)
1 |
# -*- coding: utf-8 -*-
|
---|---|
2 |
# vim:set expandtab tabstop=4 shiftwidth=4:
|
3 |
|
4 |
import os |
5 |
|
6 |
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 |
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 |
sysconfdir = os.getenv("SYSCONFDIR", "/etc") |
22 |
|
23 |
tests_require = [ |
24 |
'WebTest',
|
25 |
'BeautifulSoup',
|
26 |
'coverage',
|
27 |
] |
28 |
|
29 |
setup( |
30 |
name='vigigraph',
|
31 |
version='2.0.0',
|
32 |
description='',
|
33 |
author='Vigilo Team',
|
34 |
author_email='contact@projet-vigilo.org',
|
35 |
#url='',
|
36 |
license='http://www.gnu.org/licenses/gpl-2.0.html',
|
37 |
install_requires=[ |
38 |
"vigilo-turbogears",
|
39 |
], |
40 |
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 |
tests_require=tests_require, |
45 |
extras_require={ |
46 |
'tests': tests_require,
|
47 |
}, |
48 |
package_data={ |
49 |
'vigigraph': [
|
50 |
'i18n/*/LC_MESSAGES/*.mo',
|
51 |
'i18n/*/LC_MESSAGES/*.js',
|
52 |
'templates/*/*',
|
53 |
'public/js/*.js',
|
54 |
], |
55 |
}, |
56 |
message_extractors={ |
57 |
'vigigraph': [
|
58 |
('**.py', 'python', None), |
59 |
('**/public/js/*.js', 'javascript', None), |
60 |
], |
61 |
}, |
62 |
|
63 |
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 |
|
75 |
cmdclass=cmdclass, |
76 |
data_files=[ |
77 |
(os.path.join(sysconfdir, 'vigilo/vigigraph/'), [
|
78 |
'deployment/vigigraph.conf',
|
79 |
'deployment/vigigraph.wsgi',
|
80 |
'deployment/settings.ini',
|
81 |
'deployment/who.ini',
|
82 |
]), |
83 |
], |
84 |
) |