-
Notifications
You must be signed in to change notification settings - Fork 28
/
setup.py
74 lines (66 loc) · 1.95 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
import os
from setuptools import find_packages
from setuptools import setup
version = '0.9.11'
install_requires = [
"cryptacular",
"zope.sqlalchemy",
"velruse>=1.0.3",
"pyramid>=1.5.1",
'pyramid_mako',
"pyramid_mailer",
"requests",
"wtforms",
"wtforms-recaptcha",
]
tests_require = install_requires + ['Sphinx', 'docutils',
'WebTest', 'virtualenv',
'nose', 'coverage']
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.rst')).read()
CHANGELOG = open(os.path.join(here, 'CHANGELOG.txt')).read()
except IOError:
README = CHANGELOG = ''
kwargs = dict(
version=version,
name='apex',
description="""\
Pyramid toolkit to add Velruse, Flash Messages,\
CSRF, ReCaptcha and Sessions""",
long_description=README + '\n\n' + CHANGELOG,
classifiers=[
"Intended Audience :: Developers",
"Programming Language :: Python",
"License :: OSI Approved :: MIT License",
],
install_requires=install_requires,
license="MIT",
packages=find_packages(),
include_package_data=True,
zip_safe=True,
tests_require=tests_require,
test_suite="apex.tests",
url="http://thesoftwarestudio.com/apex/",
author="Chris Davies",
author_email='[email protected]',
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)