forked from django/channels_redis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
35 lines (30 loc) · 1013 Bytes
/
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
import os
from setuptools import setup, find_packages
def get_version():
for line in open(os.path.join(os.path.dirname(__file__), 'asgi_redis', '__init__.py')):
if line.startswith('__version__'):
return line.split('=')[-1].strip().replace('"', '').replace("'", '')
# We use the README as the long_description
readme_path = os.path.join(os.path.dirname(__file__), "README.rst")
setup(
name='asgi_redis',
version=get_version(),
url='http://github.com/django/asgi_redis/',
author='Django Software Foundation',
author_email='[email protected]',
description='Redis-backed ASGI channel layer implementation',
long_description=open(readme_path).read(),
license='BSD',
zip_safe=False,
packages=find_packages(),
include_package_data=True,
install_requires=[
'six',
'redis>=2.10',
'msgpack-python',
'asgiref>=1.0.0',
],
extras_requires={
"cryptography": ['cryptography>=1.3.0'],
}
)