-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
76 lines (69 loc) · 2.13 KB
/
setup.py
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 = """penelope.trac
=============
for more details visit: http://getpenelope.github.com/"""
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
requires = [
'distribute',
'mandrill',
'penelope.core',
'privatecomments',
'python-creole',
'sensitivetickets>=0.21',
'setuptools',
'Trac',
'TracDynamicFields',
'TracThemeEngine>=2.0',
'TracXMLRPC',
]
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'] = {
'penelope/trac': extractors,
}
except ImportError:
pass
setup(name='penelope.trac',
version='1.2.13.dev0',
description='Penelope: Trac integration',
long_description=README + '\n\n' + CHANGES,
classifiers=[
"Programming Language :: Python",
"Framework :: Pylons",
],
author='Penelope Team',
author_email='[email protected]',
url='http://getpenelope.github.com',
keywords='web wsgi bfg pylons pyramid',
namespace_packages=['penelope'],
packages=find_packages(),
include_package_data=True,
zip_safe=False,
test_suite='penelope.trac',
install_requires = requires,
entry_points = {
'console_scripts': [
'auth_wsgi = penelope.trac.auth_wsgi:main',
],
'trac.plugins': [
'penelope.trac = penelope.trac.plugins',
'penelope.trac.users = penelope.trac.user',
'penelope.trac.communication = penelope.trac.communication',
'penelope.trac.workflow = penelope.trac.workflow',
]
},
**extra
)