Skip to content

Commit b085b59

Browse files
0xD09CD196D188D0B0jkimbo
authored andcommitted
add Django 3.0 to the test matrix (#793)
* add Django 3.0 to the test matrix * fix six imports
1 parent e17582e commit b085b59

File tree

5 files changed

+10
-3
lines changed

5 files changed

+10
-3
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ matrix:
3535
env: DJANGO=2.1
3636
- python: 3.6
3737
env: DJANGO=2.2
38+
- python: 3.6
39+
env: DJANGO=3.0
3840
- python: 3.6
3941
env: DJANGO=master
4042

@@ -46,6 +48,8 @@ matrix:
4648
env: DJANGO=2.1
4749
- python: 3.7
4850
env: DJANGO=2.2
51+
- python: 3.7
52+
env: DJANGO=3.0
4953
- python: 3.7
5054
env: DJANGO=master
5155

graphene_django/debug/sql/tracking.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from threading import local
66
from time import time
77

8-
from django.utils import six
8+
import six
99
from django.utils.encoding import force_text
1010

1111
from .types import DjangoDebugSQL

graphene_django/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
"""
1414
from __future__ import unicode_literals
1515

16+
import six
1617
from django.conf import settings
1718
from django.test.signals import setting_changed
18-
from django.utils import six
1919

2020
try:
2121
import importlib # Available in Python 3.1+

graphene_django/utils/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import inspect
22

3+
import six
34
from django.db import models
45
from django.db.models.manager import Manager
5-
from django.utils import six
66
from django.utils.encoding import force_text
77
from django.utils.functional import Promise
88

tox.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[tox]
22
envlist =
33
py{27,35,36,37}-django{111,20,21,22,master},
4+
py{36,37}-django30,
45
black,flake8
56

67
[travis:env]
@@ -9,6 +10,7 @@ DJANGO =
910
2.0: django20
1011
2.1: django21
1112
2.2: django22
13+
3.0: django30
1214
master: djangomaster
1315

1416
[testenv]
@@ -23,6 +25,7 @@ deps =
2325
django20: Django>=2.0,<2.1
2426
django21: Django>=2.1,<2.2
2527
django22: Django>=2.2,<3.0
28+
django30: Django>=3.0a1,<3.1
2629
djangomaster: https://github.com/django/django/archive/master.zip
2730
commands = {posargs:py.test --cov=graphene_django graphene_django examples}
2831

0 commit comments

Comments
 (0)