2016-09-18 02:29:00 +03:00
|
|
|
from setuptools import find_packages, setup
|
2017-08-01 08:46:27 +03:00
|
|
|
import sys
|
|
|
|
import ast
|
|
|
|
import re
|
|
|
|
|
|
|
|
_version_re = re.compile(r'__version__\s+=\s+(.*)')
|
|
|
|
|
|
|
|
with open('graphene_django/__init__.py', 'rb') as f:
|
|
|
|
version = str(ast.literal_eval(_version_re.search(
|
|
|
|
f.read().decode('utf-8')).group(1)))
|
2016-09-18 02:29:00 +03:00
|
|
|
|
2017-05-28 23:46:24 +03:00
|
|
|
rest_framework_require = [
|
2017-07-25 08:27:50 +03:00
|
|
|
'djangorestframework>=3.6.3',
|
2017-05-28 23:46:24 +03:00
|
|
|
]
|
|
|
|
|
|
|
|
|
2017-03-03 05:32:05 +03:00
|
|
|
tests_require = [
|
|
|
|
'pytest>=2.7.2',
|
|
|
|
'pytest-cov',
|
|
|
|
'coveralls',
|
|
|
|
'mock',
|
|
|
|
'pytz',
|
|
|
|
'django-filter',
|
2018-06-05 23:22:27 +03:00
|
|
|
'pytest-django>=3.2.1',
|
2017-05-28 23:46:24 +03:00
|
|
|
] + rest_framework_require
|
2017-03-03 05:32:05 +03:00
|
|
|
|
2016-09-18 02:29:00 +03:00
|
|
|
setup(
|
|
|
|
name='graphene-django',
|
2017-08-01 08:46:27 +03:00
|
|
|
version=version,
|
2016-09-18 02:29:00 +03:00
|
|
|
|
|
|
|
description='Graphene Django integration',
|
2016-09-18 04:49:03 +03:00
|
|
|
long_description=open('README.rst').read(),
|
2016-09-18 02:29:00 +03:00
|
|
|
|
|
|
|
url='https://github.com/graphql-python/graphene-django',
|
|
|
|
|
|
|
|
author='Syrus Akbary',
|
|
|
|
author_email='me@syrusakbary.com',
|
|
|
|
|
|
|
|
license='MIT',
|
|
|
|
|
|
|
|
classifiers=[
|
|
|
|
'Development Status :: 3 - Alpha',
|
|
|
|
'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 :: Implementation :: PyPy',
|
|
|
|
],
|
|
|
|
|
|
|
|
keywords='api graphql protocol rest relay graphene',
|
|
|
|
|
|
|
|
packages=find_packages(exclude=['tests']),
|
|
|
|
|
|
|
|
install_requires=[
|
|
|
|
'six>=1.10.0',
|
2018-06-06 00:17:21 +03:00
|
|
|
'graphene>=2.1,<3',
|
2018-06-05 22:19:37 +03:00
|
|
|
'graphql-core>=2.1rc1',
|
2018-06-08 21:51:41 +03:00
|
|
|
'Django>=1.8.0',
|
2016-09-18 02:29:00 +03:00
|
|
|
'iso8601',
|
|
|
|
'singledispatch>=3.4.0.3',
|
2017-10-25 20:49:37 +03:00
|
|
|
'promise>=2.1',
|
2016-09-18 02:29:00 +03:00
|
|
|
],
|
2016-11-12 20:27:25 +03:00
|
|
|
setup_requires=[
|
|
|
|
'pytest-runner',
|
|
|
|
],
|
2017-03-03 05:32:05 +03:00
|
|
|
tests_require=tests_require,
|
2017-05-28 23:46:24 +03:00
|
|
|
rest_framework_require=rest_framework_require,
|
2017-03-03 05:32:05 +03:00
|
|
|
extras_require={
|
|
|
|
'test': tests_require,
|
2017-05-28 23:46:24 +03:00
|
|
|
'rest_framework': rest_framework_require,
|
2017-03-03 05:32:05 +03:00
|
|
|
},
|
2016-09-20 09:04:07 +03:00
|
|
|
include_package_data=True,
|
|
|
|
zip_safe=False,
|
|
|
|
platforms='any',
|
2016-09-18 02:29:00 +03:00
|
|
|
)
|