]> git.phdru.name Git - cookiecutter.git/blob - project_template/tox.ini
Move hard requirements from tox.ini to requirements.txt
[cookiecutter.git] / project_template / tox.ini
1 [tox]
2 minversion = 1.8
3 toxworkdir={homedir}/.tox/{project}
4 envlist = {py26,py27,py33,py34,py35,py36},{py27,py34}-flake8
5
6 # Base test environment settings
7 [testenv]
8 basepython =
9     py27: {env:TOXPYTHON:python2.7}
10     py33: {env:TOXPYTHON:python3.3}
11     py34: {env:TOXPYTHON:python3.4}
12     py35: {env:TOXPYTHON:python3.5}
13     py36: {env:TOXPYTHON:python3.6}
14     pypy: {env:TOXPYTHON:pypy}
15 commands =
16     {envpython} --version
17     {envpython} -c "import struct; print(struct.calcsize('P') * 8)"
18 deps =
19     -rdevscripts/requirements/requirements_tests.txt
20 sitepackages = True
21 # Don't fail or warn on uninstalled commands
22 whitelist_externals =
23     flake8
24
25 [general]
26 commands =
27     python -m pytest --cov={project}
28
29 [testenv:py26]
30 commands =
31     {[testenv]commands}
32     {[general]commands}
33
34 [testenv:py27]
35 commands =
36     {[testenv]commands}
37     {[general]commands}
38
39 [testenv:py33]
40 commands =
41     {[testenv]commands}
42     {[general]commands}
43
44 [testenv:py34]
45 commands =
46     {[testenv]commands}
47     {[general]commands}
48
49 [testenv:py35]
50 commands =
51     {[testenv]commands}
52     {[general]commands}
53
54 [testenv:py36]
55 commands =
56     {[testenv]commands}
57     {[general]commands}
58
59 [testenv:py27-flake8]
60 deps =
61     flake8
62 commands =
63     {[testenv]commands}
64     flake8
65
66 [testenv:py34-flake8]
67 deps =
68     flake8
69 commands =
70     {[testenv]commands}
71     flake8