-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
77 lines (67 loc) · 2.04 KB
/
Copy pathsetup.py
File metadata and controls
77 lines (67 loc) · 2.04 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = """trac.por
=============
for more details visit: http://getpenelope.github.com/"""
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
requires = [
'distribute',
'Trac',
'TracThemeEngine>=2.0',
'TracXMLRPC',
'TracDynamicFields',
'sensitivetickets>=0.21',
'privatecomments',
'penelope.core',
'python-creole',
'mandrill'
]
extra = {}
try:
from trac.util.dist import get_l10n_cmdclass
cmdclass = get_l10n_cmdclass()
if cmdclass: # Yay, Babel is there, we've got something to do!
extra['cmdclass'] = cmdclass
extractors = [
('**.py', 'python', None),
('**/templates/**.html', 'genshi', None),
('**/templates/**.txt', 'genshi', {
'template_class': 'genshi.template:TextTemplate'
}),
]
extra['message_extractors'] = {
'trac/por': extractors,
}
except ImportError:
pass
setup(name='trac.por',
version='1.2.20.dev0',
description='Penelope: trac integration',
long_description=README + '\n\n' + CHANGES,
classifiers=[
"Programming Language :: Python",
"Framework :: Trac",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
author='Penelope Team',
author_email='penelopedev@redturtle.it',
url='http://getpenelope.github.com',
keywords='web trac',
namespace_packages=['trac'],
test_suite='trac.por.tests',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires = requires,
entry_points = {
'trac.plugins': [
'trac.por = trac.por.plugins',
'trac.por.users = trac.por.user',
'trac.por.communication = trac.por.communication',
'trac.por.workflow = trac.por.workflow',
],
},
**extra
)