# Generated from: # https://github.com/zopefoundation/meta/tree/master/config/pure-python [tox] minversion = 3.18 envlist = lint py27 py35 py36 py37 py38 py39 pypy pypy3 docs coverage [testenv] usedevelop = true deps = zope.testrunner # Until repoze.sphinx.autointerface supports Sphinx 4.x we cannot use it: Sphinx < 4 git+https://github.com/zopefoundation/zope.untrustedpython.git@config-with-pure-python#egg=zope.untrustedpython commands = zope-testrunner --test-path=src {posargs:-vc} sphinx-build -b doctest -d {envdir}/.cache/doctrees docs {envdir}/.cache/doctest extras = test docs untrusted [testenv:lint] basepython = python3 skip_install = true deps = flake8 check-manifest check-python-versions commands = flake8 src setup.py check-manifest check-python-versions [testenv:docs] basepython = python3 skip_install = false # Until repoze.sphinx.autointerface supports Sphinx 4.x we cannot use it: deps = Sphinx < 4 git+https://github.com/zopefoundation/zope.untrustedpython.git@config-with-pure-python#egg=zope.untrustedpython commands_pre = commands = sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html sphinx-build -b doctest -d docs/_build/doctrees docs docs/_build/doctest [testenv:coverage] basepython = python3 allowlist_externals = mkdir deps = coverage coverage-python-version # Until repoze.sphinx.autointerface supports Sphinx 4.x we cannot use it: Sphinx < 4 zope.testrunner git+https://github.com/zopefoundation/zope.untrustedpython.git@config-with-pure-python#egg=zope.untrustedpython commands = mkdir -p {toxinidir}/parts/htmlcov coverage run -m zope.testrunner --test-path=src {posargs:-vc} coverage run -a -m sphinx -b doctest -d {envdir}/.cache/doctrees docs {envdir}/.cache/doctest coverage html coverage report -m --fail-under=97 [coverage:run] branch = True plugins = coverage_python_version source = src [coverage:report] precision = 2 exclude_lines = pragma: no cover pragma: nocover except ImportError: raise NotImplementedError if __name__ == '__main__': self.fail raise AssertionError [coverage:html] directory = parts/htmlcov