This repository has been archived by the owner on Apr 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
77 lines (67 loc) · 1.63 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
[tox]
envlist =
clean,
check,
py35,
docs
[testenv]
basepython =
{py35,docs,spell}: {env:TOXPYTHON:python3.5}
{py36}: {env:TOXPYTHON:python3.6}
{py37}: {env:TOXPYTHON:python3.7}
{clean,check,report,coveralls,codecov}: {env:TOXPYTHON:python3}
{bumpversion,publish}: {env:TOXPYTHON:python3}
setenv =
PYTHONPATH={toxinidir}/tests
PYTHONUNBUFFERED=yes
passenv =
*
usedevelop = false
deps =
-r./testing-requirements.txt
commands =
{posargs:pytest --cov=ldap_tools -n 2 --cov-append --cov-report=term-missing -vv tests --timeout=5 --tb=long}
[testenv:docs]
deps =
-r{toxinidir}/docs/requirements.txt
commands =
sphinx-build {posargs:-E} -b html docs dist/docs
sphinx-build -b linkcheck docs dist/docs
[testenv:check]
deps = {[testenv]deps}
skip_install = true
commands =
python setup.py check --strict --metadata --restructuredtext
check-manifest {toxinidir}
flake8 src tests setup.py
isort --verbose --check-only --diff --recursive src tests setup.py
[testenv:coveralls]
deps = {[testenv]deps}
skip_install = true
commands =
coveralls []
[testenv:codecov]
deps = {[testenv]deps}
skip_install = true
commands =
coverage xml --ignore-errors
codecov []
[testenv:report]
deps = {[testenv]deps}
skip_install = true
commands =
coverage combine --append
coverage report
coverage html
[testenv:clean]
commands = coverage erase
skip_install = true
deps = coverage
[testenv:bumpversion]
commands = bump2version --verbose --allow-dirty patch
skip_install = true
[testenv:publish]
commands =
python setup.py bdist_wheel
twine upload dist/*
skip_install = true