forked from cd34/apex
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
50 lines (44 loc) · 1.33 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
from setuptools import find_packages
from setuptools import setup
version = '0.9.5'
install_requires=[
"cryptacular",
"zope.sqlalchemy",
"velruse==0.20a1dev",
"pyramid>1.1.2",
"pyramid_mailer",
"wtforms",
"wtforms-recaptcha",
]
tests_require = install_requires + ['Sphinx', 'docutils',
'WebTest', 'virtualenv', 'nose']
kwargs = dict(
version=version,
name='Apex',
long_description='Pyramid starter project to add Velruse, Flash Messages, CSRF, ReCaptcha and Sessions',
install_requires=install_requires,
packages=find_packages(),
include_package_data=True,
zip_safe=True,
tests_require=tests_require,
test_suite="apex.tests",
entry_points = """\
[paste.paster_create_template]
apex_routesalchemy=apex.scaffolds:ApexRoutesAlchemyTemplate
"""
)
# to update catalogs, use babel and lingua !
try:
import babel
babel = babel # PyFlakes
# if babel is installed, advertise message extractors (if we pass
# this to setup() unconditionally, and babel isn't installed,
# distutils warns pointlessly)
kwargs['message_extractors'] = { ".": [
("**.py", "lingua_python", None ),
('**.mako', 'mako', None),
("**.pt", "lingua_xml", None ),
]}
except ImportError:
pass
setup(**kwargs)