forked from bbangert/beaker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
81 lines (73 loc) · 2.61 KB
/
Copy pathsetup.py
File metadata and controls
81 lines (73 loc) · 2.61 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
77
78
79
80
81
import os
import sys
import re
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
v = open(os.path.join(here, 'beaker', '__init__.py'))
VERSION = re.compile(r".*__version__ = '(.*?)'", re.S).match(v.read()).group(1)
v.close()
try:
README = open(os.path.join(here, 'README.rst')).read()
except IOError:
README = ''
extra = {}
tests_require = ['nose', 'webtest', 'Mock']
pycryptopp = 'pycryptopp>=0.5.12'
if sys.version_info >= (3, 0):
extra.update(
use_2to3=True,
)
else:
tests_require.append(pycryptopp)
if not sys.platform.startswith('java') and not sys.platform == 'cli':
tests_require.extend(['SQLALchemy'])
try:
import sqlite3
except ImportError:
tests_require.append('pysqlite')
setup(name='Beaker',
version=VERSION,
description="A Session and Caching library with WSGI Middleware",
long_description=README,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.4',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Internet :: WWW/HTTP :: WSGI',
'Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware',
],
keywords='wsgi myghty session web cache middleware',
author='Ben Bangert, Mike Bayer, Philip Jenvey',
author_email='ben@groovie.org, pjenvey@groovie.org',
url='http://beaker.rtfd.org/',
license='BSD',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests', 'tests.*']),
zip_safe=False,
install_requires=[],
extras_require={
'crypto':[pycryptopp]
},
test_suite='nose.collector',
tests_require=tests_require,
entry_points="""
[paste.filter_factory]
beaker_session = beaker.middleware:session_filter_factory
[paste.filter_app_factory]
beaker_session = beaker.middleware:session_filter_app_factory
[beaker.backends]
database = beaker.ext.database:DatabaseNamespaceManager
memcached = beaker.ext.memcached:MemcachedNamespaceManager
google = beaker.ext.google:GoogleNamespaceManager
sqla = beaker.ext.sqla:SqlaNamespaceManager
""",
**extra
)