]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
tox: Add default Django version
authorStephen Finucane <stephen@that.guru>
Thu, 30 Apr 2020 21:22:10 +0000 (22:22 +0100)
committerStephen Finucane <stephen@that.guru>
Thu, 30 Apr 2020 21:24:46 +0000 (22:24 +0100)
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 <stephen@that.guru>
tox.ini

diff --git a/tox.ini b/tox.ini
index 0e4c78fbff2f0faa888118203edbcc9e823613f8..c20ef898b242b0aa40e571a20870d332e153dc3c 100644 (file)
--- 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