Skip to content

Commit

Permalink
django version depends on python version
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Dec 6, 2017
1 parent 384bff0 commit 489d287
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
'pytest-django==2.9.1',
] + rest_framework_require

django_version = 'Django>=1.8.0,<2' if sys.version_info[0] < 3 else 'Django>=1.8.0'
setup(
name='graphene-django',
version=version,
Expand Down Expand Up @@ -58,7 +59,7 @@
install_requires=[
'six>=1.10.0',
'graphene>=2.0,<3',
'Django>=1.8.0',
django_version,
'iso8601',
'singledispatch>=3.4.0.3',
'promise>=2.1',
Expand Down

0 comments on commit 489d287

Please sign in to comment.