doc: add readthedocs config
[rarfile.git] / tox.ini
blobd1d408d7634753bc5bd6511b6043e79ad3307b61
2 [tox]
3 envlist = lint,docs,py3-pycryptodome,py3-cryptography,py3
5 [package]
6 name = rarfile
7 deps =
8 pycryptodome: pycryptodome==3.20.0
9 cryptography: cryptography==42.0.5
10 test_deps =
11 #coverage==7.3.1
12 coverage==7.4.4
13 pytest==8.1.1
14 pytest-cov==5.0.0
15 pytest-xdist==3.5.0
16 doc_deps =
17 sphinx==7.2.6
18 docutils==0.20.1
19 lint_deps =
20 pylint==3.1.0
22 [testenv]
23 deps =
24 {[package]deps}
25 {[package]test_deps}
26 commands =
27 pytest --cov=rarfile --cov-report=term --cov-report=html:{toxinidir}/cover/{envname} {posargs}
28 sh ./test/run_dump.sh {envpython} {envname}
29 allowlist_externals = sh
31 [testenv:lint]
32 basepython = python3
33 deps =
34 {[package]deps}
35 {[package]lint_deps}
36 {[package]test_deps}
37 commands =
38 pylint rarfile.py dumprar.py test
40 [testenv:docs]
41 basepython = python3
42 deps = {[package]doc_deps}
43 changedir = doc
44 commands =
45 sphinx-build -q -W -b html -d {envtmpdir}/doctrees . ../tmp/dochtml