Python 3.10 compatibility

tox.ini updated to also run tests on python 3.8, 3.9 and 3.10
This commit is contained in:
Cyrille Pontvieux 2021-07-01 12:43:38 +02:00 committed by Jonathan Kim
parent aba771b2fc
commit 9b016d12cd
5 changed files with 11 additions and 7 deletions

View File

@ -1,5 +1,6 @@
import re
from collections import Iterable, OrderedDict
from collections import OrderedDict
from collections.abc import Iterable
from functools import partial
from graphql_relay import connection_from_list

View File

@ -1,5 +1,6 @@
import inspect
from collections import Mapping, OrderedDict
from collections import OrderedDict
from collections.abc import Mapping
from functools import partial
from .argument import Argument, to_arguments

View File

@ -1,5 +1,5 @@
import json
from collections import Mapping
from collections.abc import Mapping
def to_key(value):

View File

@ -1,4 +1,5 @@
from collections import Mapping, OrderedDict
from collections import OrderedDict
from collections.abc import Mapping
def deflate(node, index=None, path=None):

View File

@ -1,5 +1,5 @@
[tox]
envlist = py{27,36,37,38,39},flake8,pre-commit,mypy
envlist = py{27,36,37,38,39,310},flake8,pre-commit,mypy
[gh-actions]
python =
@ -8,18 +8,19 @@ python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
[testenv]
passenv = *
usedevelop = True
deps =
-e.[test]
py{36,37,38,39}: pytest-asyncio
py{36,37,38,39,310}: pytest-asyncio
setenv =
PYTHONPATH = .:{envdir}
commands =
py{27}: py.test --cov=graphene graphene examples {posargs}
py{36,37,38,39}: py.test --cov=graphene graphene examples tests_asyncio tests_py36 {posargs}
py{36,37,38,39,310}: py.test --cov=graphene graphene examples tests_asyncio tests_py36 {posargs}
[testenv:pre-commit]
deps =