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