This repository has been archived by the owner on Jan 15, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
92 lines (83 loc) · 1.89 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# Quickstarted Options:
#
# sqlalchemy: True
# auth: sqlalchemy
# mako: False
#
#
# This is just a work-around for a Python2.7 issue causing
# interpreter crash at exit when trying to log an info message.
try:
import logging
import multiprocessing
except:
pass
import sys
py_version = sys.version_info[:2]
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
testpkgs = [
'coverage',
'gearbox',
'nose',
'WebTest >= 1.2.3',
]
install_requires = [
"alembic",
"Beaker >= 1.8.0",
"filedepot",
"icalendar",
"Kajiki >= 0.6.3",
"docutils",
"pytz",
"repoze.who",
"requests",
"sqlalchemy",
"tgext.admin >= 0.6.1",
"tgscheduler",
"TurboGears2 >= 2.3.11",
"tw2.forms",
"WebHelpers2",
"zope.sqlalchemy >= 0.4",
"Pillow",
"sphinx",
]
if py_version != (3, 2):
# Babel not available on 3.2
install_requires.append("Babel")
setup(
name='mozzarella',
version='0.1',
description='',
author='',
author_email='',
url='',
packages=find_packages(exclude=['ez_setup']),
install_requires=install_requires,
include_package_data=True,
test_suite='nose.collector',
tests_require=testpkgs,
package_data={'mozzarella': [
'i18n/*/LC_MESSAGES/*.mo',
'templates/*/*',
'public/*/*'
]},
message_extractors={'mozzarella': [
('**.py', 'python', None),
('templates/**.xhtml', 'kajiki', {'strip_text': False, 'extract_python': True}),
('public/**', 'ignore', None)
]},
entry_points={
'paste.app_factory': [
'main = mozzarella.config.middleware:make_app'
],
'gearbox.plugins': [
'turbogears-devtools = tg.devtools'
]
},
zip_safe=False
)