forked from ericrasmussen/pyramid_redis_sessions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
63 lines (53 loc) · 1.79 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
# -*- coding: utf-8 -*-
import os
from setuptools import find_packages
from setuptools import setup
# manage package version
package_version = '1.0.2'
# get readme and changes
here = os.path.abspath(os.path.dirname(__file__))
try:
with open(os.path.join(here, 'README.txt')) as text_file:
README = text_file.read()
with open(os.path.join(here, 'CHANGES.txt')) as text_file:
CHANGES = text_file.read()
except IOError:
README = CHANGES = ''
# set up requires
install_requires = ['redis>=2.4.11, != 2.9.1', 'pyramid>=1.3']
testing_requires = ['nose']
testing_extras = testing_requires + ['coverage']
docs_extras = ['sphinx']
def main():
setup(
name='pyramid_redis_sessions',
version=package_version,
description='Pyramid web framework session factory backed by Redis',
long_description=README + '\n\n' + CHANGES,
classifiers=[
'Intended Audience :: Developers',
"Framework :: Pyramid",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
],
keywords='pyramid session redis',
author='Eric Rasmussen',
author_email='[email protected]',
url='https://github.com/ericrasmussen/pyramid_redis_sessions',
license='FreeBSD',
packages=find_packages(),
#test_suite='pyramid_redis_sessions.tests',
test_suite='nose.collector',
include_package_data=True,
zip_safe=False,
tests_require=testing_requires,
install_requires=install_requires,
entry_points='',
extras_require = {
'testing': testing_extras,
'docs': docs_extras,
},
)
if __name__ == '__main__':
main()