-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
76 lines (67 loc) · 1.57 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
[tox]
envlist = {test}-{v3,v4}
min_version = 4
requires =
pip>=23.0.0
[testenv]
# pip compile extras and then install
install_command = python -I tools/tox-install.py {packages} --env-name {envname} --input-file pyproject.toml {opts}
[testenv:lint]
allowlist_externals = rm
deps =
; pyproject.toml extra
.[dev-lint]
commands =
flake8 src/
python tools/generate-pipenv.py
pipenv check
mypy src/ tools/
[testenv:docs]
deps =
; pyproject.toml extra
.[dev-docs]
commands =
python -m sphinx -b html -a {toxinidir}/docs/source {toxinidir}/docs/html
passenv =
SPHINX_GITHUB_CHANGELOG_TOKEN
[testenv:build]
skip_install = True
deps =
; pyproject.toml extra
.[dev-build]
commands =
python -m build
; builds wheel and sdist
[testenv:test-{v3,v4}]
deps=
; pyproject.toml extra
.[dev-test]
v4: tox>=4.0.0
v3: tox<4.0.0
commands =
python -m pip freeze
python -m pytest {posargs: -rs tests/ --log-level=WARNING --cov=azure_devops_artifacts_helpers --cov-report xml:{toxinidir}/reports/{envname}-coverage.xml --junitxml={toxinidir}/reports/{envname}-test.xml}
[testenv:populate]
skip_install = True
deps =
; pyproject.toml extra
.[dev-populate]
commands =
python tools/populate-wheels.py {posargs}
[testenv:develop]
skip_install = True
envdir = {toxinidir}/.venv
allowlist_externals = tox
commands =
pip install -e .
; populate the wheels as well here
tox -e populate
deps =
; pyproject.toml extras
.[dev]
.[dev-lint]
.[dev-test]
.[dev-build]
.[dev-docs]
.[dev-populate]
.[tox]