From 90d5eb122ae0b9dd4338f54046efe73786c77f6b Mon Sep 17 00:00:00 2001 From: Jawayria Date: Tue, 3 Aug 2021 18:31:55 +0500 Subject: [PATCH] chore: Executed tox-modernizer codemod --- tox.ini | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/tox.ini b/tox.ini index 5075783ee3..adafde5009 100644 --- a/tox.ini +++ b/tox.ini @@ -1,18 +1,18 @@ [tox] -envlist = py{38}-django{22,30,31} +envlist = py38-django{22,30,31,32} # This is needed to prevent the lms, cms, and openedx packages inside the "Open # edX" package (defined in setup.py) from getting installed into site-packages # where they can get imported, which is bad because those won't even contain # most of the source code since we don't explicitly add anything to the source # distribution. -skipsdist=True +skipsdist = True # The default toxworkdir is in the source tree (as ".tox/"), but `django-admin # compilemessages` unconditionally walks the entire directory tree under the # source root and cannot handle encountering the toxworkdir. So, we un-break # compilemessages by moving the toxworkdir to the home directory. -toxworkdir={homedir}/edxapp_toxenv +toxworkdir = {homedir}/edxapp_toxenv [testenv] # This ensures "-e ." is installed, so that a link back to the top-level @@ -21,7 +21,7 @@ toxworkdir={homedir}/edxapp_toxenv # processes running python code do not import from the current working # directory without hacking sys.path, but they will inherit the tox virtualenv # and look in site-packages. -usedevelop=True +usedevelop = True setenv = PYTHONHASHSEED=0 TOXENV={envname} @@ -66,11 +66,11 @@ passenv = XDIST_WORKER_KEY_NAME XDIST_WORKER_SECURITY_GROUP XDIST_WORKER_SUBNET - deps = - django22: -r requirements/edx/django.txt - django30: -r requirements/edx/django30.txt - django31: -r requirements/edx/django31.txt + django22: Django>=2.2,<2.3 + django30: Django>=3.0,<3.1 + django31: Django>=3.1,<3.2 + django32: Django>=3.2,<4.0 -r requirements/edx/testing.txt whitelist_externals = /bin/bash @@ -78,3 +78,4 @@ whitelist_externals = /bin/tar commands = {posargs} +