-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
72 lines (60 loc) · 2.03 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
import os
import sys
import re
from setuptools import setup, find_packages
NAME = 'pyramid-asyncio'
py_version = sys.version_info[:2]
if py_version < (3, 3):
raise Exception("{name} requires Python >= 3.3.".format(name=NAME))
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.rst')) as readme:
README = readme.read()
with open(os.path.join(here, 'CHANGES.rst')) as changes:
CHANGES = changes.read()
with open(os.path.join(here, NAME.replace('-', '_'),
'__init__.py')) as version:
VERSION = re.compile(r".*__version__ = '(.*?)'",
re.S).match(version.read()).group(1)
requires = [
'pyramid < 1.7a1',
'gunicorn >= 19.0',
'aiohttp < 2.0',
]
extras_require = {
'session': ['pyramid-kvs >= 0.2', # XXX unreleased
'asyncio-redis',
'simplejson'
]
}
if py_version < (3, 4):
requires.append('asyncio')
setup(name=NAME,
version=VERSION,
description='Pyramid Asyncio Glue',
long_description=README + '\n\n' + CHANGES,
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Framework :: Pyramid",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
"Intended Audience :: Developers",
"License :: Repoze Public License",
],
author='Guillaume Gauvrit',
author_email='[email protected]',
url='https://github.com/mardiros/pyramid_asyncio',
keywords='pyramid asyncio',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
test_suite='{name}.tests'.format(name=NAME),
install_requires=requires,
license="BSD-derived (http://www.repoze.org/LICENSE.txt)",
extras_require=extras_require,
entry_points = """\
[pyramid.scaffold]
aio_jinja2=pyramid_asyncio.scaffolds:AioJinja2Template
"""
)