[tox] isolated_build = True envlist = lint py38,py39,py310,py311,py312,py313,py314 coverage docs audit [testenv] # Python 3.8 only: modern virtualenv seeds pip 26 / setuptools 82 into the env, # but pip 26 refuses to run on 3.8 and setuptools 82 dropped pkg_resources # (which zope.testrunner 6.6.1 -- the last 3.8-compatible release -- imports). # Pin the seeded pip and cap setuptools on 3.8 so pkg_resources stays available. # 3.9+ need neither: pip 26 runs there and zope.testrunner 8.x drops pkg_resources. # These are no-ops under tox-uv and on CI (focal ships compatible tooling). set_env = py38: VIRTUALENV_PIP = 24.3.1 deps = .[test] py38: setuptools < 81 zope.testrunner commands = zope-testrunner --test-path src --tests-pattern ^tests {posargs} [testenv:lint] # align with .launchpad.yaml basepython = python3.12 skip_install = true deps = pre-commit commands = pre-commit run --all-files [testenv:coverage] basepython = python3.12 deps = .[test] zope.testrunner coverage commands = coverage run --source lazr.delegates -m zope.testrunner \ --test-path src --tests-pattern ^tests {posargs} coverage report --show-missing --fail-under=100 [testenv:docs] # align with .launchpad.yaml basepython = python3.12 deps = .[docs] commands = sphinx-build -b html -d src/lazr/delegates/docs/_build/doctrees src/lazr/delegates/docs src/lazr/delegates/docs/_build/html [testenv:audit] # align with .launchpad.yaml basepython = python3.12 deps = pip>=26.0 pip-audit commands = pip-audit