-
Notifications
You must be signed in to change notification settings - Fork 79
/
tox.ini
49 lines (44 loc) · 1.19 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
[tox]
envlist = flake8,py
[testenv]
basepython = python3
setenv =
USING_TOX=1
deps =
-r tests/requirements.txt
commands =
pytest --cov=shub --cov-report=term-missing --cov-report=html --cov-report=xml {posargs:shub tests}
[testenv:min]
deps =
{[testenv]deps}
[testenv:freeze]
install_command =
python -m pip install {opts} {packages}
deps =
pyinstaller==4.10
pytest
packaging==20.4
setuptools==59.8.0 # https://github.com/pypa/setuptools/issues/3089
; address https://github.com/pyinstaller/pyinstaller/issues/2162 with hidden imports
setuptools>=44.0
commands =
pyinstaller --clean -y -F -n shub \
--distpath=./dist_bin \
--additional-hooks-dir=./freeze/hooks \
--runtime-hook=./freeze/hooks/runtime-hooks.py \
--icon=./freeze/spider-down.ico \
--hidden-import=packaging \
--hidden-import=packaging.specifiers \
./shub/__main__.py
pytest -vv {toxinidir}/freeze/tests/run.py
[testenv:flake8]
deps =
flake8>=3.7.9
commands =
flake8 --exclude=.git,.tox,venv* {posargs:shub tests}
[testenv:docs]
changedir = docs
deps =
-rdocs/requirements.txt
commands =
sphinx-build -W -b html . {envtmpdir}/html