Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

vigigraph / setup.py @ 7f07168b

History | View | Annotate | Download (2.11 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='vigilo-vigigraph',
31
    version='2.0.0',
32
    author='Vigilo Team',
33
    author_email='contact@projet-vigilo.org',
34
    url='http://www.projet-vigilo.org',
35
    license='http://www.gnu.org/licenses/gpl-2.0.html',
36
    description="Vigilo metrology interface",
37
    long_description="Vigilo metrology interface",
38
    install_requires=[
39
        "vigilo-turbogears",
40
        ],
41
    paster_plugins=['PasteScript', 'Pylons', 'TurboGears2', 'tg.devtools'],
42
    packages=find_packages(exclude=['ez_setup']),
43
    include_package_data=True,
44
    test_suite='nose.collector',
45
    tests_require=tests_require,
46
    extras_require={
47
        'tests': tests_require,
48
    },
49
    package_data={
50
        'vigigraph': [
51
            'i18n/*/LC_MESSAGES/*.mo',
52
            'i18n/*/LC_MESSAGES/*.js',
53
            'templates/*/*',
54
            'public/js/*.js',
55
        ],
56
    },
57
    message_extractors={
58
        'vigigraph': [
59
            ('**.py', 'python', None),
60
            ('**/public/js/*.js', 'javascript', None),
61
        ],
62
    },
63

    
64
    entry_points={
65
        'paste.app_factory': [
66
            'main = vigigraph.config.middleware:make_app',
67
        ],
68
        'paste.app_install': [
69
            'main = pylons.util:PylonsInstaller',
70
        ],
71
        'vigilo.models': [
72
            'populate_db = vigigraph.websetup:populate_db',
73
        ],
74
    },
75

    
76
    cmdclass=cmdclass,
77
    data_files=[
78
        (os.path.join(sysconfdir, 'vigilo/vigigraph/'), [
79
            'deployment/vigigraph.conf',
80
            'deployment/vigigraph.wsgi',
81
            'deployment/settings.ini',
82
            'deployment/who.ini',
83
        ]),
84
    ],
85
)