Skip to content

Commit f8a5860

Browse files
=Jacob Foster
authored andcommitted
django version depends on python version
1 parent 24706f5 commit f8a5860

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
'pytest-django==2.9.1',
2525
] + rest_framework_require
2626

27+
django_version = 'Django>=1.8.0,<2' if sys.version_info[0] < 3 else 'Django>=1.8.0'
2728
setup(
2829
name='graphene-django',
2930
version=version,
@@ -58,7 +59,7 @@
5859
install_requires=[
5960
'six>=1.10.0',
6061
'graphene>=2.0,<3',
61-
'Django>=1.8.0',
62+
django_version,
6263
'iso8601',
6364
'singledispatch>=3.4.0.3',
6465
'promise>=2.1',

0 commit comments

Comments
 (0)