#!/usr/bin/env python

# This file is part of the "Cleverbox" program.
#
# Cleverbox is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Cleverbox is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Cleverbox.  If not, see <http://www.gnu.org/licenses/>.

"""Cleverbox : Script for automating multiple trac instances deployment and maintenance.

The Cleverbox sits on top of Trac (http://trac.edgewall.org) and Subversion (http://subversion.tigris.org).
It provides an interactive shell for deploying and maintaining instances of both projects.
"""

from glob import glob
from setuptools import setup, find_packages

classifiers = """\
Development Status :: 4 - Beta
Environment :: Console
Intended Audience :: System Administrators
License :: OSI Approved :: GNU General Public License (GPL) v3
Natural Language :: English
Operating System :: POSIX
Topic :: Software Development :: Bug Tracking
Topic :: Software Development :: Version Control :: Subversion
Topic :: System :: Systems Administration
Topic :: Utilities
"""

doclines = __doc__.split("\n")

setup(

    # Project identity
    name='Cleverbox',
    version='0.5dev',
    description='Script for automating multiple trac instances deployment and maintenance.',
    author='Tristan Rivoallan',
    author_email='trivoallan@clever-age.com',
    url='http://www.clever-age.org/trac/wiki/cleverbox',
    license='GPLv3',
    classifiers = filter(None, classifiers.split("\n")),
    long_description = "\n".join(doclines[2:]),

    # Files
    packages=find_packages(),
    scripts=['scripts/cleverbox-admin'],
    data_files=[('/usr/share/cleverbox',     glob('assets/*')),
                ('/usr/share/doc/cleverbox', glob('docs/*')),
                ('/usr/share/man/man1',      glob('scripts/*.1'))],

    # Dependencies
    install_requires=['setuptools>=0.6b1', 'Trac>=0.11']
)

