#   Copyright 2007,2008 Andrea Tomasini <andrea.tomasini_at_agile42.com>,
#
#   Licensed under the Apache License, Version 2.0 (the "License");
#   you may not use this file except in compliance with the License.
#   You may obtain a copy of the License at
#
#       http://www.apache.org/licenses/LICENSE-2.0
#
#   Unless required by applicable law or agreed to in writing, software
#   distributed under the License is distributed on an "AS IS" BASIS,
#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#   See the License for the specific language governing permissions and
#   limitations under the License.

try:
    from ez_setup import use_setuptools
    use_setuptools()
except ImportError:
    pass #Is installing from a source package is not copied locally
from setuptools import setup, find_packages
from agilo import __package__, __version__

setup(
    name=__package__,
    version=__version__,
    author='Andrea Tomasini, Felix Schwarz, Jonas von Poser, Sebastian Schulze, Garbrand van der Molen',
    author_email='support+agilo@agile42.com',
    url='http://www.agile42.com/',
    description='Agilo for Scrum is a simple and straightforward tool to support the Scrum process.',
    license='Apache License 2.0',
    packages=find_packages(exclude=['tests', 'functional_tests']),
    include_package_data = True,
    entry_points = {'trac.plugins': ['agilo.admin = agilo.admin',
                                     'agilo.api.web_ui = agilo.api.web_ui',
                                     'agilo.charts = agilo.charts',
                                     'agilo.csv_import.web_ui = agilo.csv_import.web_ui',
                                     'agilo.help = agilo.help',
                                     'agilo.help.search = agilo.help.search',
                                     'agilo.init = agilo.init',
                                     
                                     'agilo.scrum = agilo.scrum',
                                     'agilo.scrum.workflow.rules = agilo.scrum.workflow.rules',
                                     
                                     'agilo.ticket = agilo.ticket',
                                     'agilo.ticket.web_ui = agilo.ticket.web_ui',
                                     'agilo.ticket.links = agilo.ticket.links',
                                     
                                     'agilo.utils.compatibility_warner = agilo.utils.compatibility_warner',
                                     'agilo.utils.permissions = agilo.utils.permissions',
                                     'agilo.utils.web_ui = agilo.utils.web_ui']
    },
    package_data = {'': ['templates/*']},
    install_requires=['trac >= 0.11',
                      'genshi >= 0.5.1, < 0.6dev', # see Genshi bug #254
                      'simplejson'
                      ], 
    test_suite='agilo.test.build_functional_test_suite',
)
