738a671459
This drops python3.8 and python3.10 testing focusing only on python3.11. At the same time we bump the container image to python3.11 and bookworm. The eventual goal here is to have opendev services on bookworm and python3.11 so that we can drop docker image builds for bullseye and older python versions. Change-Id: I37b2ed3fafb3599db95730f3a9bbb90da95ff0e4
37 lines
756 B
INI
37 lines
756 B
INI
[tox]
|
|
envlist = py311,pep8
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = pip install {opts} {packages}
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
PYTHONDONTWRITEBYTECODE = 1
|
|
LANGUAGE=en_US
|
|
LC_ALL=en_US.UTF-8
|
|
PYTHONWARNINGS=default::DeprecationWarning
|
|
TESTS_DIR=./gerritbot/tests/unit/
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
allowlist_externals = rm
|
|
commands =
|
|
rm -f .testrepository/times.dbm
|
|
stestr run {posargs}
|
|
passenv = http_proxy
|
|
HTTP_PROXY
|
|
https_proxy
|
|
HTTPS_PROXY
|
|
no_proxy
|
|
NO_PROXY
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
|
|
[testenv:pyflakes]
|
|
commands = flake8
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[flake8]
|
|
show-source = True
|
|
exclude = .venv,.tox,dist,doc,*.egg
|