-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
50 lines (43 loc) · 1.39 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = py36,py37,py38,py39,flake8,pylint,docs,check-manifest,checkreadme
[testenv]
commands = py.test -p pytester --cov={envsitepackagesdir}/pytest_info_collector --runpytest=subprocess {posargs}
deps =
-rtest-requirements.txt
basepython =
py36: {env:TOXPYTHON:python3.6}
py37: {env:TOXPYTHON:python3.7}
py38: {env:TOXPYTHON:python3.8}
py39: {env:TOXPYTHON:python3.9}
flake8: {env:TOXPYTHON:python3}
pylint: {env:TOXPYTHON:python3}
docs: {env:TOXPYTHON:python3}
check-manifest: {env:TOXPYTHON:python3}
checkreadme: {env:TOXPYTHON:python3}
[testenv:docs]
changedir=docs
deps=-rdoc-requirements.txt
commands=
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:flake8]
deps=flake8
commands=
flake8 --exclude={envsitepackagesdir}/pytest_info_collector/_version.py {envsitepackagesdir}/pytest_info_collector
[testenv:pylint]
deps=pylint
commands=
pylint {envsitepackagesdir}/pytest_info_collector
[testenv:check-manifest]
deps=check-manifest
setenv =
CHECK_MANIFEST=true
commands=
check-manifest
[testenv:checkreadme]
deps=readme_renderer
commands=
python setup.py check -s -r