[tox] envlist = qa, {py35, py36}{,-dev,-head}{-nocov,-cov} setup35, setup36 skip_missing_interpreters = True [testenv] usedevelop = True deps = flufl.testing parameterized nose2 cov: coverage head: git+https://gitlab.com/mailman/mailman.git head: git+https://github.com/SecurityInnovation/PGPy # Expects a mailman repo and PGPy repo in parent directory. dev: -e../mailman dev: -e../PGPy commands = nocov: python -m nose2 -v {posargs} cov: python -m coverage run {[coverage]rc} -m nose2 -v {posargs} cov: python -m coverage html {[coverage]rc} cov: python -m coverage report -m {[coverage]rc} [testenv:qa] basepython = python3 commands = python -m flake8 src deps = flake8>3.0 flake8-import-order # This is ugly, but necessary due to the requirement on dev version of Mailman git+https://gitlab.com/mailman/mailman.git git+https://github.com/SecurityInnovation/PGPy [testenv:setup35] recreate = True basepython = python3.5 commands = pip install -e . [testenv:setup36] recreate = True basepython = python3.6 commands = pip install -e . [coverage] rcfile = {toxinidir}/coverage.ini rc = --rcfile={[coverage]rcfile} [flake8] jobs = 1 max-line-length = 79 import-order-style = google application-import-names = mailman_pgp