tox.ini 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. ; a generative tox configuration, see: https://testrun.org/tox/latest/config.html#generative-envlist
  2. [tox]
  3. envlist =
  4. check,
  5. clean,
  6. docs-{default,bare},
  7. import
  8. [testenv]
  9. basepython = {env:TOXPYTHON:python3.4}
  10. envdir = {toxinidir}/.tox/docs
  11. setenv =
  12. default: EXTRASTYLING=true
  13. bare: EXTRASTYLING=false
  14. passenv =
  15. *
  16. deps =
  17. sphinx
  18. ghp-import2
  19. commands =
  20. clean: python -c 'import shutil; shutil.rmtree("dist", True)'
  21. default: sphinx-build {posargs:-E} -b html tests dist/default
  22. bare: sphinx-build {posargs:-E} -b html tests dist/bare
  23. import: ghp-import -n -p -m "Update gh-pages." dist
  24. usedevelop = true
  25. [testenv:check]
  26. basepython = python3.4
  27. deps =
  28. docutils
  29. check-manifest
  30. flake8
  31. readme
  32. pygments
  33. skip_install = true
  34. usedevelop = false
  35. commands =
  36. python setup.py check --strict --metadata --restructuredtext
  37. check-manifest {toxinidir}
  38. flake8 src
  39. [testenv:import]
  40. skip_install = true
  41. usedevelop = false
  42. [testenv:clean]
  43. skip_install = true
  44. usedevelop = false