@@ -6,9 +6,9 @@ envlist =
66 py38,
77 py39,
88 py310,
9+ docs,
910 lint,
1011 type,
11- docs,
1212isolated_build = true
1313
1414[testenv]
@@ -21,6 +21,23 @@ passenv =
2121deps = -rtest-requirements.txt
2222commands = python -m pytest {posargs}
2323
24+ [testenv:dev]
25+ description = generate a DEV environment, that has all project libraries
26+ usedevelop = True
27+ deps =
28+ -rtest-requirements.txt
29+ -rdocs/requirements-docs.txt
30+ commands =
31+ python -m pip list --format =columns
32+ python -c ' import sys; print(sys.executable)'
33+
34+ [testenv:docs]
35+ description = invoke sphinx-build to build the HTML docs
36+ deps = -rdocs/requirements-docs.txt
37+ commands =
38+ sphinx-build -d " {toxworkdir}/docs_doctree" docs/source " {toxworkdir}/docs_out" --color -W -bhtml {posargs}
39+ python -c ' import pathlib; print("documentation available under file://\{ 0\} ".format(pathlib.Path(r"{toxworkdir}") / "docs_out" / "index.html"))'
40+
2441[testenv:lint]
2542description = check the code style
2643commands =
@@ -37,20 +54,3 @@ passenv =
3754commands =
3855 python -m mypy --config-file mypy_self_check.ini -p mypy -p mypyc
3956 python -m mypy --config-file mypy_self_check.ini misc --exclude misc/fix_annotate.py --exclude misc/async_matrix.py --exclude misc/sync-typeshed.py
40-
41- [testenv:docs]
42- description = invoke sphinx-build to build the HTML docs
43- deps = -rdocs/requirements-docs.txt
44- commands =
45- sphinx-build -d " {toxworkdir}/docs_doctree" docs/source " {toxworkdir}/docs_out" --color -W -bhtml {posargs}
46- python -c ' import pathlib; print("documentation available under file://\{ 0\} ".format(pathlib.Path(r"{toxworkdir}") / "docs_out" / "index.html"))'
47-
48- [testenv:dev]
49- description = generate a DEV environment, that has all project libraries
50- usedevelop = True
51- deps =
52- -rtest-requirements.txt
53- -rdocs/requirements-docs.txt
54- commands =
55- python -m pip list --format =columns
56- python -c ' import sys; print(sys.executable)'
0 commit comments