-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
tox.ini
40 lines (36 loc) · 885 Bytes
/
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
[tox]
envlist =
docs, packaging, py37, py38, py39, py310, py311, coverage-report
[testenv]
passenv = CI GIT_SSL_CAINFO
setenv =
LC_ALL = en_US.UTF-8
deps =
-e .[tests,requests]
coverage
commands = coverage run --parallel-mode -m pytest -v -x --timeout 300 []
install_command = python -m pip install {opts} {packages}
usedevelop = True
[testenv:coverage-report]
deps = coverage
skip_install = true
commands =
coverage combine
# coverage report
coverage html
[testenv:docs]
deps =
-r{toxinidir}/docs/requirements.txt
-e .[requests,tests]
commands =
sphinx-build -d {envtmpdir}/doctrees -b html docs docs/build/html
sphinx-build -d {envtmpdir}/doctrees -b man docs docs/build/man
[testenv:packaging]
deps =
check-manifest
twine
readme_renderer[md]
commands =
check-manifest
python setup.py sdist bdist_wheel
twine check dist/*