-
Notifications
You must be signed in to change notification settings - Fork 19
/
tox.ini
82 lines (75 loc) · 1.88 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
78
79
80
81
82
[tox]
envlist = {py38,py39,py310,py311,py312}-{windows,others}, update-oefen, update-productie, flake8, docs
[gh-actions]
python =
3.12: py312
3.11: py311
3.10: py310
3.9: py39
3.8: py38
[testenv:flake8]
basepython=python3.11
deps=flake8
commands=flake8 pydov
[testenv:docs]
basepython=python3.11
passenv = *
allowlist_externals=/usr/bin/pandoc
deps =
-r{toxinidir}/requirements_dev.txt
-r{toxinidir}/requirements_doc.txt
commands=
pandoc -v
sphinx-build -b html docs docs/_build
[testenv:{py38,py39,py310,py311,py312}-windows]
platform = win32
basepython =
py38: python3.8
py39: python3.9
py310: python3.10
py311: python3.11
py312: python3.12
setenv =
PYTHONPATH = {toxinidir}
deps =
-r{toxinidir}/requirements_dev.txt
-r{toxinidir}/requirements_geom.txt
-r{toxinidir}/requirements_proxy.txt
commands =
py.test --basetemp={envtmpdir} --cov=pydov
[testenv:{py38,py39,py310,py311,py312}-others]
platform = linux|darwin
basepython =
py38: python3.8
py39: python3.9
py310: python3.10
py311: python3.11
py312: python3.12
setenv =
PYTHONPATH = {toxinidir}
deps =
-r{toxinidir}/requirements_dev.txt
-r{toxinidir}/requirements_geom.txt
commands =
py.test --basetemp={envtmpdir} --cov=pydov
[testenv:update-oefen]
basepython=python3.11
setenv =
PYTHONPATH = {toxinidir}
PYDOV_BASE_URL = https://oefen.dov.vlaanderen.be/
deps =
-r{toxinidir}/requirements_dev.txt
-r{toxinidir}/requirements_geom.txt
commands =
python {toxinidir}/tests/data/update_test_data.py
py.test --basetemp={envtmpdir} --cov=pydov
[testenv:update-productie]
basepython=python3.11
setenv =
PYTHONPATH = {toxinidir}
deps =
-r{toxinidir}/requirements_dev.txt
-r{toxinidir}/requirements_geom.txt
commands =
python {toxinidir}/tests/data/update_test_data.py
py.test --basetemp={envtmpdir} --cov=pydov