mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-29 13:03:44 +03:00
add Django 3.0 to the test matrix (#793)
* add Django 3.0 to the test matrix * fix six imports
This commit is contained in:
parent
e17582e1a1
commit
b085b5922a
|
@ -35,6 +35,8 @@ matrix:
|
||||||
env: DJANGO=2.1
|
env: DJANGO=2.1
|
||||||
- python: 3.6
|
- python: 3.6
|
||||||
env: DJANGO=2.2
|
env: DJANGO=2.2
|
||||||
|
- python: 3.6
|
||||||
|
env: DJANGO=3.0
|
||||||
- python: 3.6
|
- python: 3.6
|
||||||
env: DJANGO=master
|
env: DJANGO=master
|
||||||
|
|
||||||
|
@ -46,6 +48,8 @@ matrix:
|
||||||
env: DJANGO=2.1
|
env: DJANGO=2.1
|
||||||
- python: 3.7
|
- python: 3.7
|
||||||
env: DJANGO=2.2
|
env: DJANGO=2.2
|
||||||
|
- python: 3.7
|
||||||
|
env: DJANGO=3.0
|
||||||
- python: 3.7
|
- python: 3.7
|
||||||
env: DJANGO=master
|
env: DJANGO=master
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ import json
|
||||||
from threading import local
|
from threading import local
|
||||||
from time import time
|
from time import time
|
||||||
|
|
||||||
from django.utils import six
|
import six
|
||||||
from django.utils.encoding import force_text
|
from django.utils.encoding import force_text
|
||||||
|
|
||||||
from .types import DjangoDebugSQL
|
from .types import DjangoDebugSQL
|
||||||
|
|
|
@ -13,9 +13,9 @@ back to the defaults.
|
||||||
"""
|
"""
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
import six
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.test.signals import setting_changed
|
from django.test.signals import setting_changed
|
||||||
from django.utils import six
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import importlib # Available in Python 3.1+
|
import importlib # Available in Python 3.1+
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import inspect
|
import inspect
|
||||||
|
|
||||||
|
import six
|
||||||
from django.db import models
|
from django.db import models
|
||||||
from django.db.models.manager import Manager
|
from django.db.models.manager import Manager
|
||||||
from django.utils import six
|
|
||||||
from django.utils.encoding import force_text
|
from django.utils.encoding import force_text
|
||||||
from django.utils.functional import Promise
|
from django.utils.functional import Promise
|
||||||
|
|
||||||
|
|
3
tox.ini
3
tox.ini
|
@ -1,6 +1,7 @@
|
||||||
[tox]
|
[tox]
|
||||||
envlist =
|
envlist =
|
||||||
py{27,35,36,37}-django{111,20,21,22,master},
|
py{27,35,36,37}-django{111,20,21,22,master},
|
||||||
|
py{36,37}-django30,
|
||||||
black,flake8
|
black,flake8
|
||||||
|
|
||||||
[travis:env]
|
[travis:env]
|
||||||
|
@ -9,6 +10,7 @@ DJANGO =
|
||||||
2.0: django20
|
2.0: django20
|
||||||
2.1: django21
|
2.1: django21
|
||||||
2.2: django22
|
2.2: django22
|
||||||
|
3.0: django30
|
||||||
master: djangomaster
|
master: djangomaster
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
|
@ -23,6 +25,7 @@ deps =
|
||||||
django20: Django>=2.0,<2.1
|
django20: Django>=2.0,<2.1
|
||||||
django21: Django>=2.1,<2.2
|
django21: Django>=2.1,<2.2
|
||||||
django22: Django>=2.2,<3.0
|
django22: Django>=2.2,<3.0
|
||||||
|
django30: Django>=3.0a1,<3.1
|
||||||
djangomaster: https://github.com/django/django/archive/master.zip
|
djangomaster: https://github.com/django/django/archive/master.zip
|
||||||
commands = {posargs:py.test --cov=graphene_django graphene_django examples}
|
commands = {posargs:py.test --cov=graphene_django graphene_django examples}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user