diff --git a/tox.ini b/tox.ini index b5249f7..dade784 100644 --- a/tox.ini +++ b/tox.ini @@ -7,12 +7,14 @@ toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/authentic2-wallonie-connect/{env:BRANCH_NAME:} envlist = py3-dj111-drf34 + py3-dj111-drf39 py3-dj22-drf39 [tox:jenkins] envlist = pylint py3-dj111-drf34 + py3-dj111-drf39 py3-dj22-drf39 [testenv] @@ -22,8 +24,17 @@ setenv = DB_ENGINE=django.db.backends.postgresql_psycopg2 JUNIT={tty::-o junit_suite_name={envname} --junit-xml=junit-{envname}.xml} COVERAGE={tty::--junitxml=test_{envname}_results.xml --cov-report xml --cov-report html --cov=src/ --cov-config .coveragerc} + SETUPTOOLS_USE_DISTUTILS=stdlib +passenv= + BRANCH_NAME + # support for pg_virtualenv + PGPORT + PGHOST + PGUSER + PGPASSWORD usedevelop = True deps = + pip > 9 https://git.entrouvert.org/authentic.git/snapshot/authentic-master.tar.gz # dependency constraints for authentic drf34: djangorestframework>=3.4,<3.4.1 @@ -32,6 +43,7 @@ deps = dj22: django<2.3 django-tables<2.0 psycopg2-binary + py3: django-filter<2.3 # pytest requirements pytest @@ -41,7 +53,7 @@ deps = pyquery commands = - py3: ./getlasso3.sh + ./getlasso3.sh py.test {env:COVERAGE:} {env:JUNIT:} {tty:--sw:} {posargs:tests/} [testenv:pylint] @@ -62,5 +74,13 @@ filterwarnings = ignore:defusedxml.lxml is no longer supported:DeprecationWarning:openpyxl.xml.functions ignore:Using or importing the ABCs from 'collections':DeprecationWarning:django.* ignore:Role QuerySet won't use Meta.ordering::django\..* + ignore:Using user.is_authenticated\(\) and user.is_anonymous\(\) as a method is deprecated.::rest_framework\.* + ignore:Rendering.*raised KeyError::django\.template\.loader_tags +# warning of gettext() when using Django 1.11 with Python 3.8 + ignore:set_output_charset\(\) is deprecated::django.utils.translation.trans_real + ignore:parameter codeset is deprecated::django.utils.translation.trans_real +# warning in markdown + ignore:'version' is deprecated. Use '__version__' instead # remind us later once:.*staticfiles.*::django\..* + once