Code and keywords cleanup.
[infos-pratiques:etalage.git] / setup.py
1 #! /usr/bin/env python
2 # -*- coding: utf-8 -*-
3
4
5 # Etalage -- Open Data POIs portal
6 # By: Emmanuel Raviart <eraviart@easter-eggs.com>
7 #
8 # Copyright (C) 2011, 2012 Easter-eggs
9 # http://gitorious.org/infos-pratiques/etalage
10 #
11 # This file is part of Etalage.
12 #
13 # Etalage is free software; you can redistribute it and/or modify
14 # it under the terms of the GNU Affero General Public License as
15 # published by the Free Software Foundation, either version 3 of the
16 # License, or (at your option) any later version.
17 #
18 # Etalage is distributed in the hope that it will be useful,
19 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21 # GNU Affero General Public License for more details.
22 #
23 # You should have received a copy of the GNU Affero General Public License
24 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
25
26
27 """Web application based on "Etalage" hierarchical database of territories"""
28
29
30 try:
31     from setuptools import setup, find_packages
32 except ImportError:
33     from ez_setup import use_setuptools
34     use_setuptools()
35     from setuptools import setup, find_packages
36
37
38 classifiers = """\
39 Development Status :: 3 - Alpha
40 Environment :: Web Environment
41 Intended Audience :: Information Technology
42 License :: OSI Approved :: GNU Affero General Public License v3
43 Operating System :: OS Independent
44 Programming Language :: Python
45 Topic :: Scientific/Engineering
46 """
47
48 doc_lines = __doc__.split('\n')
49
50
51 setup(
52     name = 'Etalage',
53     version = '0.1',
54
55     author = 'Emmanuel Raviart',
56     author_email = 'infos-pratiques-devel@listes.infos-pratiques.org',
57     classifiers = [classifier for classifier in classifiers.split('\n') if classifier],
58     description = doc_lines[0],
59     keywords = 'data database directory geographical organism open organization poi web',
60     license = 'http://www.fsf.org/licensing/licenses/agpl-3.0.html',
61     long_description = '\n'.join(doc_lines[2:]),
62     url = 'http://gitorious.org/infos-pratiques/etalage',
63
64     data_files = [
65         ('share/locale/fr/LC_MESSAGES', ['etalage/i18n/fr/LC_MESSAGES/etalage.mo']),
66         ],
67     entry_points = """
68         [paste.app_factory]
69         main = etalage.application:make_app
70
71         [paste.app_install]
72         main = etalage.websetup:Installer
73         """,
74     include_package_data = True,
75     install_requires = [
76         "Biryani >= 0.9dev",
77         "Mako >= 0.3.6",
78         "Suq-Monpyjama >= 0.8",
79         "threading2 >= 0.2.1",
80         "WebError >= 0.10",
81         "WebOb >= 1.1",
82         ],
83     message_extractors = {'etalage': [
84             ('**.py', 'python', None),
85             ('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}),
86             ('static/**', 'ignore', None)]},
87 #    package_data = {'etalage': ['i18n/*/LC_MESSAGES/*.mo']},
88     packages = find_packages(),
89     paster_plugins = ['PasteScript'],
90     setup_requires = ["PasteScript >= 1.6.3"],
91     zip_safe = False,
92     )