Converts test to pytest, nose is dead
[rarfile.git] / tox.ini
blob32a8852cea8d88a2ef19c1a83fbb5d756fd8ee3a
2 [tox]
3 envlist = lint,docs,py2,py37-pycrypto,py36-cryptography,py38
5 [package]
6 name = rarfile
7 test_deps =
8 pytest==5.1.2
9 pytest-cov==2.7.1
10 doc_deps =
11 sphinx==2.2.0
12 docutils==0.15.2
13 lint_deps =
14 pylint==2.3.1
16 [testenv]
17 deps = {[package]test_deps}
18 pycrypto: pycrypto==2.6.1
19 pycrypto: pyblake2==1.1.2
20 cryptography: cryptography==2.6.1
22 commands =
23 pytest -vv --cov=rarfile --cov-report=term {toxinidir}/test --cov-report=html:{toxinidir}/cover/{envname} {posargs}
24 sh ./test/run_dump.sh {envpython} {envname}
25 whitelist_externals = sh
27 [testenv:py2]
28 basepython = python2.7
29 deps =
30 pytest==4.6.5
31 pytest-cov==2.7.1
32 pycrypto==2.6.1
33 pyblake2==1.1.2
35 [testenv:lint]
36 basepython = python3
37 deps = {[package]lint_deps}
38 {[package]test_deps}
39 commands =
40 pylint rarfile.py dumprar.py
41 pylint test
43 [testenv:docs]
44 basepython = python3
45 deps = {[package]doc_deps}
46 changedir = doc
47 commands =
48 sphinx-build -q -W -b html -d {envtmpdir}/doctrees . ../tmp/dochtml
49 rst2html.py ../README.rst ../tmp/dochtml/README.html