Upgrade to tox 4. (Now a minimum requirement.)

This commit is contained in:
Dan Helfman 2023-10-23 17:39:27 -07:00
parent 257ab77bea
commit 895a0ccb3c
2 changed files with 12 additions and 10 deletions

View file

@ -21,8 +21,8 @@ apk add --no-cache python3 py3-pip borgbackup postgresql-client mariadb-client m
py3-ruamel.yaml py3-ruamel.yaml.clib py3-yaml bash sqlite fish
# If certain dependencies of black are available in this version of Alpine, install them.
apk add --no-cache py3-typed-ast py3-regex || true
python3 -m pip install --no-cache --upgrade pip==22.2.2 setuptools==64.0.1 pymongo==4.4.1
pip3 install --ignore-installed tox==3.25.1
python3 -m pip install --no-cache --upgrade pip==22.2.2 setuptools==64.0.1
pip3 install --ignore-installed tox==4.11.3
export COVERAGE_FILE=/tmp/.coverage
if [ "$1" != "--end-to-end-only" ]; then

18
tox.ini
View file

@ -1,12 +1,12 @@
[tox]
envlist = py37,py38,py39,py310,py311
env_list = py37,py38,py39,py310,py311
skip_missing_interpreters = True
skipsdist = True
minversion = 3.14.1
package = editable
min_version = 4.0
[testenv]
usedevelop = True
deps = -rtest_requirements.txt
deps =
-r test_requirements.txt
whitelist_externals =
find
sh
@ -27,10 +27,12 @@ commands =
pytest {posargs}
[testenv:end-to-end]
usedevelop = False
deps = -rtest_requirements.txt
package = editable
deps =
-r test_requirements.txt
pymongo==4.4.1
.
passenv = COVERAGE_FILE
pass_env = COVERAGE_FILE
commands =
pytest {posargs} --no-cov tests/end-to-end