/
tox.ini
80 lines (69 loc) · 1.72 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
[tox]
envlist = py38, py39, py310, py311, py312
isolated_build = true
minversion = 3.18
passenv =
CONAN_USER_HOME
FRAMEWORK40VERSION
FRAMEWORKDIR
[testenv]
deps =
pytest
pybind11
passenv =
INCLUDE
LIB
LIBPATH
install_command=python -I -m pip install {opts} {packages} -v --config-settings=conan_cache={env:CONAN_USER_HOME:{temp_dir}}{/}.conan
commands =
python -c "from py3exiv2bind import core;print(f'Testing against exiv2 version {core.exiv2_version()}')"
pytest {posargs} --basetemp={envtmpdir} -o pythonpath=
[tox:jenkins]
command = pytest -v
[testenv:docs]
deps=
sphinx
commands=
sphinx-build {env:sphinx_args:-W -b html -d {envtmpdir}/doctrees docs/source {distdir}/html}
[testenv:otool]
platform = darwin
deps = macholib
commands =
python -mmacholib dump {envsitepackagesdir}/py3exiv2bind
[testenv:dumpbin]
platform = win32
allowlist_externals=dumpbin
commands =
dumpbin /DEPENDENTS {envsitepackagesdir}/py3exiv2bind/*.pyd
dumpbin /DEPENDENTS {envsitepackagesdir}/py3exiv2bind/*.dll
[testenv:mypy]
deps =
mypy
lxml
skip_install=True
setenv = MYPY_CACHE_DIR = {temp_dir}/.mypy_cache
commands = mypy {posargs: -p py3exiv2bind}
[testenv:flake8]
description = check the code style
deps =
flake8
skip_install=True
commands = flake8 {posargs: src/py3exiv2bind}
[testenv:pylint]
description = check the code style
deps =
pylint
skip_install=True
commands = pylint {posargs: src/py3exiv2bind} --disable import-error
[testenv:pydocstyle]
skip_install = true
deps=
pydocstyle
commands =
pydocstyle {posargs: {toxinidir}/py3exiv2bind}
[testenv:bandit]
skip_install = true
deps=
bandit
commands =
bandit {posargs: --recursive {toxinidir}/py3exiv2bind}