source: tracdragdropplugin/0.12/setup.py @ 14282

Last change on this file since 14282 was 14282, checked in by Jun Omae, 9 years ago

TracDragDropPlugin: call setuptools.setup() only if run setup.py as a script

  • Property svn:executable set to *
File size: 1.3 KB
Line 
1#!/usr/bin/env python
2# -*- coding: utf-8 -*-
3
4from setuptools import setup, find_packages
5
6def main():
7    extra = {}
8
9    try:
10        import babel
11        extra['message_extractors'] = {
12            'tracdragdrop': [
13                ('**.py', 'python', None),
14                ('**.html', 'genshi', None),
15            ],
16        }
17        from trac.util.dist import get_l10n_js_cmdclass
18        extra['cmdclass'] = get_l10n_js_cmdclass()
19    except ImportError:
20        pass
21
22    setup(
23        name = 'TracDragDrop',
24        version = '0.12.0.12',
25        description = 'Add drag-and-drop attachments feature to Trac',
26        license = 'BSD', # the same as Trac
27        url = 'http://trac-hacks.org/wiki/TracDragDropPlugin',
28        author = 'Jun Omae',
29        author_email = 'jun66j5@gmail.com',
30        install_requires = ['Trac >= 0.12'],
31        packages = find_packages(exclude=['*.tests*']),
32        package_data = {
33            'tracdragdrop': [
34                'htdocs/*.js', 'htdocs/*.css', 'htdocs/*.gif',
35                'templates/*.html', 'htdocs/messages/*.js',
36                'locale/*/LC_MESSAGES/tracdragdrop.mo',
37            ],
38        },
39        entry_points = {
40            'trac.plugins': [
41                'tracdragdrop.web_ui = tracdragdrop.web_ui',
42            ],
43        },
44        **extra)
45
46if __name__ == '__main__':
47    main()
Note: See TracBrowser for help on using the repository browser.