| OLD | NEW |
| (Empty) | |
| 1 [tox] |
| 2 # env names must be a valid python binary name, unless they have a |
| 3 # separate configuration |
| 4 envlist = |
| 5 python{2.6,2.7,3.3,3.4,3.5}, pypy{,3}, crosspython{2,3}, docs |
| 6 |
| 7 [testenv] |
| 8 deps = |
| 9 mock |
| 10 pytest |
| 11 commands = |
| 12 py.test |
| 13 |
| 14 # Creating a python3 venv with a python2-based virtualenv |
| 15 [testenv:crosspython2] |
| 16 basepython=python2 |
| 17 deps = |
| 18 commands = |
| 19 virtualenv -p python3 {envtmpdir}/{envname} |
| 20 {envtmpdir}/{envname}/bin/python -V 2>&1 | grep "Python 3" |
| 21 |
| 22 # Creating a python2 venv with a python3-based virtualenv |
| 23 [testenv:crosspython3] |
| 24 basepython=python3 |
| 25 deps = |
| 26 commands = |
| 27 virtualenv -p python2 {envtmpdir}/{envname} |
| 28 {envtmpdir}/{envname}/bin/python -V 2>&1 | grep "Python 2" |
| 29 |
| 30 [testenv:docs] |
| 31 deps = |
| 32 sphinx |
| 33 readme |
| 34 commands = |
| 35 sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/_build/html |
| 36 python setup.py check -m -r -s |
| OLD | NEW |