forked from eamigo86/graphene-django-extras
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
72 lines (56 loc) · 2.02 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 ast
import os
import re
from setuptools import setup
_version_re = re.compile(r'VERSION\s+=\s+(.*)')
_name = 'graphene_django_extras'
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_extras add some extra funcionalities to graphene-django to facilitate '
'the graphql use without Relay, allow paginations and filtering integration and add some'
'extra directives',
long_description=open('README.rst').read(),
url='https://github.com/eamigo86/graphene-django-extras',
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 protocol rest graphene django',
packages=get_packages(),
install_requires=[
'graphql-core==2.1',
'graphene==2.1.3',
'graphene-django==2.2.0',
'django-filter==2.0.0',
'djangorestframework>=3.6.0'
],
extras_require={
'date': [
'python-dateutil>=2.7.3',
]
},
include_package_data=True,
zip_safe=False,
platforms='any',
)