Merge pull request #28380 from edx/jawayria/tox-modernizer

chore: Executed tox-modernizer codemod
This commit is contained in:
Jawayria
2021-08-05 13:04:54 +05:00
committed by GitHub

17
tox.ini
View File

@@ -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}