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