-
Notifications
You must be signed in to change notification settings - Fork 80
/
Copy pathtox.ini
63 lines (56 loc) · 1.43 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
[tox]
envlist = flake8,min,min-poetry,py,poetry
[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]
basepython = python3.6
deps =
{[testenv]deps}
pipenv<2024.3.0
[testenv:min-poetry]
basepython = python3.7
deps =
{[testenv]deps}
poetry-core<2
[testenv:poetry]
deps =
{[testenv:min]deps}
poetry-core
poetry-plugin-export
[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