From: Stephen Finucane Date: Thu, 30 Apr 2020 21:22:10 +0000 (+0100) Subject: tox: Add default Django version X-Git-Tag: v3.0.0~34 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=029aff107ea9950418f9ad3cf44c3ba1ca3ea3ee;p=thirdparty%2Fpatchwork.git 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 --- diff --git a/tox.ini b/tox.ini index 0e4c78fb..c20ef898 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