-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
62 lines (55 loc) · 1.31 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
[tox]
envlist = py27,py36,py37,py38,py39,py310,py311,py312,mypy,twine_check
isolated_build = true
[gh-actions]
python =
2.7: py27
3.6: py36
3.7: py37
3.8: py38,mypy
3.9: py39,mypy
3.10: py310,mypy
3.11: py311,mypy
3.12: py312,mypy,twine_check
[testenv]
extras =
test
uv
usedevelop = true
commands =
pytest -vv -n auto --cov --cov-branch --cov-report=xml --cov-report=html --cov-report=term {posargs}
[testenv:py27]
# run only helper scripts tests on python 2
skip_install = true
deps =
pytest
virtualenv
commands =
pytest -vv {toxinidir}/tests/test_pip_list_json.py {toxinidir}/tests/test_env_info_json.py
[testenv:py36]
# run only helper scripts tests on python 3.6
skip_install = true
deps =
pytest
virtualenv
commands =
pytest -vv {toxinidir}/tests/test_pip_list_json.py {toxinidir}/tests/test_env_info_json.py
[testenv:py37]
# run only helper scripts tests on python 3.7
skip_install = true
deps =
pytest
virtualenv
commands =
pytest -vv {toxinidir}/tests/test_pip_list_json.py {toxinidir}/tests/test_env_info_json.py
[testenv:mypy]
extras = mypy
commands =
mypy --strict src/pip_deepfreeze
[testenv:twine_check]
description = check that the long description is valid
deps = twine
skip_install = true
commands =
pip wheel -w {envtmpdir}/build --no-deps .
twine check {envtmpdir}/build/*