- VIRTUAL_ENV={envdir}
- PYTHONWARNINGS=default::DeprecationWarning
-deps = -r{toxinidir}/test-requirements.txt
-commands = python setup.py test --slowest --testr-args='{posargs}'
+ PYTHONWARNDFAULTENCODING = 1
+ PYTHONWARNINGS = error, ignore:Creating a LegacyVersion has been deprecated and will be removed in the next major release:DeprecationWarning, ignore:setup.py install is deprecated. Use build and pip and other standards-based tools., ignore:easy_install command is deprecated. Use build and pip and other standards-based tools., ignore:'crypt' is deprecated and slated for removal in Python 3.13:DeprecationWarning:passlib.utils, ignore:'telnetlib' is deprecated and slated for removal in Python 3.13:DeprecationWarning:mudpy.tests.selftest, ignore:Support for `[tool.setuptools]` in `pyproject.toml` is still *beta*.:Warning:setuptools.config.pyprojecttoml
+ PYTHONUTF8 = 1
+ VIRTUALENV_CREATOR = venv
+commands = mudpy_selftest mudpy/tests/fixtures/test_daemon.yaml
+download = true
+deps = {toxinidir}
+
+[testenv:bandit]
+description = check for potential security risks in source code
+skip_install = True
+deps = bandit
+commands = bandit -r mudpy -x mudpy/tests {posargs}
+
+[testenv:codespell]
+description = find common spelling mistakes in code and documentation
+skip_install = True
+deps = codespell
+commands = codespell {posargs}
+
+[testenv:demo]
+description = start an interactive demo with the sample config
+commands = mudpy {posargs}
+
+[testenv:dist]
+description = build release artifacts and check for conformance
+skip_install = True
+deps =
+ build
+ twine
+commands =
+ {envpython} -c "import shutil; shutil.rmtree('{toxinidir}/dist', ignore_errors=True)"
+ {envpython} -m build
+ twine check --strict {toxinidir}/dist/*
+
+[testenv:docs]
+# Build an sdist into a temporary location so we'll have AUTHORS and ChangeLog
+# files to include.
+description = generate hypertext documentation
+deps =
+ {[testenv]deps}
+ build
+ sphinx
+commands =
+ {envpython} -c "import shutil; shutil.rmtree('{toxinidir}/doc/build', ignore_errors=True)"
+ {envpython} -m build --outdir={toxinidir}/doc/build/dist --sdist
+ sphinx-build -W -d doc/build/doctrees -b html doc/source/ doc/build/html