1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
extra = {}
try:
from trac.util.dist import get_l10n_cmdclass
cmdclass = get_l10n_cmdclass()
if cmdclass:
extra['cmdclass'] = cmdclass
extractors = [
('**.py', 'python', None),
('**/templates/**.html', 'genshi', None),
]
extra['message_extractors'] = {
'tractags': extractors,
}
# i18n is implemented to be optional here
except ImportError:
pass
setup(
name='TracTags',
version='0.7',
packages=find_packages(exclude=['*.tests']),
package_data={'tractags' : [
'templates/*.html', 'htdocs/js/*.js', 'htdocs/css/*.css',
'locale/*/LC_MESSAGES/*.mo', 'locale/.placeholder']},
# With acknowledgement to Muness Albrae for the original idea :)
author='Alec Thomas',
author_email='alec@swapoff.org',
license='BSD',
url='http://trac-hacks.org/wiki/TagsPlugin',
description='Tags plugin for Trac',
entry_points = {'trac.plugins': ['tractags = tractags']},
dependency_links=['http://svn.edgewall.org/repos/genshi/trunk#egg=Genshi-dev'],
install_requires=['Genshi >= 0.5', 'Trac >= 0.11'],
extras_require={'Babel': 'Babel>= 0.9.5', 'Trac': 'Trac >= 0.12'},
test_suite = 'tractags.tests.test_suite',
tests_require = [],
**extra
)
|