forked from scrapinghub/shub
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
31 lines (27 loc) · 821 Bytes
/
Copy pathtox.ini
File metadata and controls
31 lines (27 loc) · 821 Bytes
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
[tox]
envlist = py27
[testenv]
setenv =
USING_TOX=1
deps =
-rrequirements.txt
mock
pytest
pytest-cov
commands =
py.test --cov=shub --cov-report= {posargs:shub tests}
[testenv:freeze]
install_command =
python -m pip install {opts} {packages}
deps =
-rrequirements.txt
; pip 8.1's manylinux1 support introduced a regression that prevents it from being frozen
pip<8.1
pyinstaller
pytest
pytest-catchlog
; Weird setuptools/PyInstaller issue: https://github.com/pyinstaller/pyinstaller/issues/1772
setuptools==19.2
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 ./freeze/shubrunner.py
py.test {toxinidir}/freeze/tests/run.py