From 029aff107ea9950418f9ad3cf44c3ba1ca3ea3ee Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Thu, 30 Apr 2020 22:22:10 +0100 Subject: tox: Add default Django version I occasionally forget myself and run e.g. 'tox -e pyNN' when I want to sanity check something instead of 'tox -e pyNN-djangoMM'. Add fallback Django versions so that this doesn't crash and burn. It's less succict than it could be since tox doesn't seem to support '!django{22,30}' (yet!). Signed-off-by: Stephen Finucane --- tox.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tox.ini b/tox.ini index 0e4c78f..c20ef89 100644 --- a/tox.ini +++ b/tox.ini @@ -14,6 +14,9 @@ deps = django30: django>=3.0,<3.1 django30: djangorestframework>=3.10,<3.12 django30: django-filter>=2.2,<3.0 + !django22,!django30: django>=3.0,<3.1 + !django22,!django30: djangorestframework>=3.10,<3.12 + !django22,!django30: django-filter>=2.2,<3.0 setenv = DJANGO_SETTINGS_MODULE = patchwork.settings.dev PYTHONDONTWRITEBYTECODE = 1 -- cgit v1.2.3