-
Notifications
You must be signed in to change notification settings - Fork 81
/
Copy pathtox.ini
35 lines (29 loc) · 991 Bytes
/
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
[tox]
envlist = py37,py38,py39,py310
[testenv]
setenv =
USING_TOX=1
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/tests/requirements.txt
commands =
flake8
py.test --cov=shub --cov-report= {posargs:shub tests}
[testenv:py27]
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/tests/requirements-py2.txt
[testenv:freeze]
install_command =
python -m pip install {opts} {packages}
deps =
-rrequirements.txt
pyinstaller==4.0
pytest
packaging==20.4
; address https://github.com/pyinstaller/pyinstaller/issues/2162 with hidden imports
setuptools==41.0.1
; address https://github.com/pyinstaller/pyinstaller/issues/3806
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
py.test {toxinidir}/freeze/tests/run.py