mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-10 19:57:15 +03:00
Add optional requires for rest framework
This commit is contained in:
parent
fb2af7067f
commit
dc86e4e9a1
9
setup.py
9
setup.py
|
@ -1,5 +1,10 @@
|
|||
from setuptools import find_packages, setup
|
||||
|
||||
rest_framework_require = [
|
||||
'djangorestframework==3.6.3',
|
||||
]
|
||||
|
||||
|
||||
tests_require = [
|
||||
'pytest>=2.7.2',
|
||||
'pytest-cov',
|
||||
|
@ -8,7 +13,7 @@ tests_require = [
|
|||
'pytz',
|
||||
'django-filter',
|
||||
'pytest-django==2.9.1',
|
||||
]
|
||||
] + rest_framework_require
|
||||
|
||||
setup(
|
||||
name='graphene-django',
|
||||
|
@ -53,8 +58,10 @@ setup(
|
|||
'pytest-runner',
|
||||
],
|
||||
tests_require=tests_require,
|
||||
rest_framework_require=rest_framework_require,
|
||||
extras_require={
|
||||
'test': tests_require,
|
||||
'rest_framework': rest_framework_require,
|
||||
},
|
||||
include_package_data=True,
|
||||
zip_safe=False,
|
||||
|
|
Loading…
Reference in New Issue
Block a user