source: tagsplugin/tags/0.9/setup.py

Last change on this file was 14948, checked in by Ryan J Ollos, 8 years ago

0.9dev: Require Trac >= 1.0

Refs #12137

File size: 1.4 KB
Line 
1# -*- coding: utf-8 -*-
2
3from setuptools import setup, find_packages
4
5extra = {}
6
7try:
8    from trac.util.dist  import  get_l10n_cmdclass
9    cmdclass = get_l10n_cmdclass()
10    if cmdclass:
11        extra['cmdclass'] = cmdclass
12        extractors = [
13            ('**.py',                'python', None),
14            ('**/templates/**.html', 'genshi', None),
15        ]
16        extra['message_extractors'] = {
17            'tractags': extractors,
18        }
19# i18n is implemented to be optional here
20except ImportError:
21    pass
22
23
24setup(
25    name='TracTags',
26    version='0.9',
27    packages=find_packages(exclude=['*.tests']),
28    package_data={'tractags' : [
29        'templates/*.html', 'htdocs/js/*.js', 'htdocs/css/*.css',
30        'htdocs/images/*.png', 'locale/*/LC_MESSAGES/*.mo',
31        'locale/.placeholder']},
32    # With acknowledgement to Muness Albrae for the original idea :)
33    # With acknowledgement to Dmitry Dianov for input field auto-completion.
34    author='Alec Thomas',
35    author_email='alec@swapoff.org',
36    license='BSD',
37    url='http://trac-hacks.org/wiki/TagsPlugin',
38    description='Tags plugin for Trac',
39    install_requires=['Trac'],
40    extras_require={
41        'babel': 'Babel>= 0.9.5',
42        'tracrpc': 'TracXMLRPC >= 1.1.0'},
43    entry_points = {'trac.plugins': [
44        'tractags = tractags',
45        'tractags.xmlrpc = tractags.xmlrpc[tracrpc]']},
46    test_suite = 'tractags.tests.test_suite',
47    tests_require = [],
48    **extra
49    )
Note: See TracBrowser for help on using the repository browser.