Commits

Antoine Pitrou committed 87dc97e

Add tox support to ease multi-version testing

  • Participants
  • Parent commits 14063fc
  • Branches pep428

Comments (0)

Files changed (3)

 ^MANIFEST
 ^docs/_
 .*\.pyc
+^\.tox/
+

docs/requirements.txt

+sphinx
+[tox]
+# XXX Python 3.4 doesn't seem compatible with tox's virtualenv
+envlist = py27,py32,py33,docs
+
+[testenv]
+deps =
+commands = {envpython} -bb test_pathlib.py {posargs}
+
+[testenv:py27]
+# Run with both legacy division and new ("true") division
+commands =
+    {envpython} -bb test_pathlib.py {posargs}
+    {envpython} -Qnew -bb test_pathlib.py {posargs}
+
+[testenv:docs]
+basepython = python
+changedir = docs
+deps = -r{toxinidir}/docs/requirements.txt
+commands =
+    sphinx-build -W -b html -d _build/doctrees .  _build/html