forked from etingof/pyasn1-modules
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
72 lines (62 loc) · 1.55 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
[tox]
minversion = 3.4.0
envlist =
{py38, py39, py310, py311, py312}-{unittest},
cover, docs, bandit, build
isolated_build = true
skip_missing_interpreters = true
[testenv]
usedevelop = True
setenv =
VIRTUAL_ENV={envdir}
PYTHONWARNINGS=default::DeprecationWarning
deps = pip >= 19.3.1
install_command =
pip install {opts} {packages}
[testenv:unittest]
deps =
{[testenv]deps}
discover
-r{toxinidir}/requirements.txt
commands =
discover -s examples/pyasn1_alt_modules-example-switch/tests -s tests
[testenv:py38-unittest]
deps = {[testenv:unittest]deps}
commands = {[testenv:unittest]commands}
[testenv:py39-unittest]
deps = {[testenv:unittest]deps}
commands = {[testenv:unittest]commands}
[testenv:py310-unittest]
deps = {[testenv:unittest]deps}
commands = {[testenv:unittest]commands}
[testenv:py311-unittest]
deps = {[testenv:unittest]deps}
commands = {[testenv:unittest]commands}
[testenv:py312-unittest]
deps = {[testenv:unittest]deps}
commands = {[testenv:unittest]commands}
[testenv:cover]
basepython = python3.11
setenv =
{[testenv]setenv}
PYTHON=coverage run --parallel-mode
deps =
{[testenv:unittest]deps}
coverage
discover
commands = coverage erase
coverage run --source pyasn1_alt_modules -m unittest discover {posargs}
coverage report --fail-under 93
[testenv:bandit]
skip_install = true
deps =
bandit
commands =
bandit -r pyasn1_alt_modules -c .bandit.yml
[testenv:build]
skip_install = true
deps =
wheel
setuptools
commands =
python setup.py -q sdist bdist_wheel