-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
61 lines (55 loc) · 1.71 KB
/
setup.py
File metadata and controls
61 lines (55 loc) · 1.71 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2008-2013 Richard Liao <richard.liao.i@gmail.com>
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution.
#
import sys
from setuptools import setup
min_python = (2, 5)
if sys.version_info < min_python:
print("TracTicketTemplate requires Python %d.%d or later" % min_python)
sys.exit(1)
extra = {}
try:
import babel
except ImportError:
babel = None
else:
extractors = [
('**.py', 'python', None),
('**/templates/**.html', 'genshi', None),
('**/templates/**.js', 'javascript', None),
('**/templates/**.txt', 'genshi',
{'template_class': 'genshi.template:NewTextTemplate'}),
]
extra['message_extractors'] = {
'tickettemplate': extractors,
}
setup(
name='TracTicketTemplate',
version='0.9.1',
packages=['tickettemplate'],
package_data={'tickettemplate': ['*.txt', 'templates/*.*', 'htdocs/*.*',
'tests/*.*', 'locale/*.*',
'locale/*/LC_MESSAGES/*.*']},
author="Richard Liao",
author_email='richard.liao.i@gmail.com',
maintainer="Richard Liao",
maintainer_email="richard.liao.i@gmail.com",
description="Ticket template plugin for Trac.",
license="3-Clause BSD",
keywords="trac ticket template",
url="http://trac-hacks.org/wiki/TracTicketTemplatePlugin",
classifiers=[
'Framework :: Trac',
],
install_requires=['simple_json' if sys.version_info < (2, 6) else ''],
entry_points={
'trac.plugins': ['tickettemplate = tickettemplate.ttadmin'],
},
**extra
)