from setuptools import setup, find_packages
from openspending.ui import __version__

setup(
    name='openspending',
    version=__version__,
    description='OpenSpending',
    author='Open Knowledge Foundation',
    author_email='okfn-help at lists okfn org',
    url='http://github.com/okfn/openspending',

    install_requires=[
        "Pylons==1.0",
        "Genshi==0.6",
        "pymongo==1.11",
        "repoze.who==2.0b1",
        "repoze.who-friendlyform==1.0.8",
        "Unidecode==0.04.7",
        "python-dateutil==1.5",
        "solrpy==0.9.4",
        "pyutilib.component.core==4.3.1",
        "Babel==0.9.6",
        "ckanclient==0.7",
        "colander==0.9.3",
        "distribute==0.6.19",
        "mock==0.7.2"
    ],
    setup_requires=[
        "PasteScript==1.7.3"
    ],

    packages=find_packages(),
    namespace_packages=['openspending', 'openspending.plugins'],

    test_suite='nose.collector',

    zip_safe=False,

    paster_plugins=['PasteScript', 'Pylons'],

    entry_points={
        'paste.app_factory': [
            'main = openspending.ui.config.middleware:make_app'
        ],
        'paste.app_install': [
            'main = pylons.util:PylonsInstaller'
        ],
        'paste.paster_command': [
            'db = openspending.command:DbCommand',
            'graph = openspending.command:GraphCommand',
            'removeentries = openspending.command:RemoveEntriesCommand',
            'solr = openspending.command:SolrCommand',
            'grantadmin = openspending.command:GrantAdminCommand'
        ]
    }
)
