# -*- coding: utf-8 -*-
#
# Copyright (C) 2011 Roberto Bordolanghi
#
# This file is part of the FAQ plugin for Trac.
#
# The FAQ plugin for Trac 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.
#
# The FAQ plugin for Trac 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 the FAQ plugin for Trac.
# If not, see <http://www.gnu.org/licenses/>.
#
from setuptools import setup
extra = {}
try:
from trac.util.dist import get_l10n_js_cmdclass
cmdclass = get_l10n_js_cmdclass()
if cmdclass: # OK, Babel is there
extra['cmdclass'] = cmdclass
extractors = [
('**.py', 'python', None),
('**/templates/**.html', 'genshi', None),
('**/templates/**.txt', 'genshi', {
'template_class': 'genshi.template:TextTemplate'
}),
]
extra['message_extractors'] = {
'faqplugin': extractors,
}
except ImportError:
pass
setup(
name='FAQPlugin',
version='0.1.0',
packages=['faqplugin'],
package_data={
'faqplugin' : [
'*.txt',
'templates/*.html',
'htdocs/applet/*.jar',
'htdocs/js/*.js',
'htdocs/css/*.css',
'htdocs/css/blitzer/*.css',
'htdocs/css/blitzer/images/*.*',
'htdocs/css/images/*.*',
'htdocs/images/*.*',
'locale/*.*',
'locale/*/LC_MESSAGES/*.mo',
'htdocs/faqplugin/*.js'
]
},
author = 'Roberto Bordolanghi',
author_email='seccanj@gmail.com',
license='GPL. See the file LICENSE.txt contained in the package.',
url='http://trac-hacks.org/wiki/FAQPlugin',
download_url='https://sourceforge.net/projects/faq4trac/files/',
description='FAQ plugin for Trac',
long_description='A plugin for creating FAQs.',
keywords='trac plugin faq faqs questions',
entry_points = {'trac.plugins': ['faqplugin = faqplugin']},
dependency_links=['http://svn.edgewall.org/repos/genshi/trunk#egg=Genshi-dev'],
install_requires=['Genshi >= 0.5'],
**extra
)