-
Notifications
You must be signed in to change notification settings - Fork 21
/
setup.py
63 lines (48 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
import ast
import os
import re
from setuptools import setup
_name = 'graphene_django_subscriptions'
_version_re = re.compile(r'VERSION\s+=\s+(.*)')
with open('{}/__init__.py'.format(_name), 'rb') as f:
version = ast.literal_eval(_version_re.search(
f.read().decode('utf-8')).group(1))
version = ".".join([str(v) for v in version])
version = version.split('.final')[0] if 'final' in version else version
def get_packages():
return [dirpath
for dirpath, dirnames, filenames in os.walk(_name)
if os.path.exists(os.path.join(dirpath, '__init__.py'))]
setup(
name=_name,
version=version,
description='Graphene-Django-Subscriptions add subscriptions support to graphene-django through '
'Channels module',
long_description=open('README.rst').read(),
url='https://github.com/eamigo86/graphene-django-subscriptions',
author='Ernesto Perez Amigo',
author_email='[email protected]',
license='MIT',
classifiers=[
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: PyPy',
],
keywords='api graphql subscription rest graphene django channels',
packages=get_packages(),
install_requires=[
'graphene-django==2.0.0',
'graphene-django-extras>=0.3.0',
'channels-api>=0.4.0'
],
include_package_data=True,
zip_safe=False,
platforms='any',
)