diff --git a/netaxept/__init__.py b/netaxept/__init__.py index abf5976..9fd6f1a 100644 --- a/netaxept/__init__.py +++ b/netaxept/__init__.py @@ -1,4 +1,4 @@ -__version__ = '0.2.0' +__version__ = '0.2.1' __copyright__ = 'Copyright (c) 2018, skioo SA' __license__ = 'MIT' __URL__ = 'https://github.com/skioo/django-netaxept-gateway' diff --git a/setup.py b/setup.py index d433afd..121078d 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ url=netaxept.__URL__, download_url='https://pypi.python.org/pypi/django-datatrans-gateway', install_requires=[ - 'Django>=2.0,<2.2', + 'Django>=2.0', 'structlog', 'suds2', 'requests', diff --git a/tests/settings.py b/tests/settings.py index 70bbe40..90c5062 100644 --- a/tests/settings.py +++ b/tests/settings.py @@ -17,11 +17,30 @@ INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', + 'django.contrib.messages', 'django.contrib.contenttypes', 'netaxept', 'tests', ] +MIDDLEWARE = [ + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.contrib.auth.middleware.AuthenticationMiddleware', + 'django.contrib.messages.middleware.MessageMiddleware', +] + +TEMPLATES = [ + { + 'BACKEND': 'django.template.backends.django.DjangoTemplates', + 'OPTIONS': { + 'context_processors': [ + 'django.contrib.auth.context_processors.auth', + 'django.contrib.messages.context_processors.messages', + ], + }, + }, +] + STATIC_URL = '/static/' ROOT_URLCONF = 'tests.urls' diff --git a/tox.ini b/tox.ini index 9565bbc..10eeec8 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,7 @@ [tox] envlist = - {py36,py37}-{django20, django21}-test - py37-django21-{checkmigrations,flake,mypy} + {py36,py37}-{django20, django21, django22}-test + py37-django22-{checkmigrations,flake,mypy} [testenv] basepython = @@ -15,6 +15,7 @@ commands = deps = django20: Django>=2.0,<2.1 django21: Django>=2.1,<2.2 + django22: Django>=2.2,<2.3 structlog suds2 requests