-
Notifications
You must be signed in to change notification settings - Fork 4
/
tox.ini
62 lines (56 loc) · 1.22 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
[tox]
envlist = min,py38,py39,py310,py311,py312,mypy,linters,twine
[testenv]
deps =
pytest
pytest-cov
pytest-twisted
freezegun
commands =
py.test \
--cov-report=html:coverage-html \
--cov-report=html \
--cov-report=xml \
--cov=zyte_spider_templates \
--reactor=asyncio \
{posargs:zyte_spider_templates tests}
[testenv:min]
basepython = python3.9
deps =
{[testenv]deps}
extruct==0.18.0
form2request==0.2.0
formasaurus==0.10.0
jmespath==0.9.5
pydantic==2.1
requests==1.0.0
scrapy==2.11.0
scrapy-poet==0.24.0
scrapy-spider-metadata==0.2.0
scrapy-zyte-api[provider]==0.23.0
web-poet==0.17.1
zyte-common-items==0.26.2
[testenv:mypy]
deps =
mypy==1.12.0
enum-tools==0.12.0
freezegun==1.5.1
pytest==8.3.3
types-requests==2.32.0.20240914
commands = mypy zyte_spider_templates tests
[testenv:linters]
deps = -rrequirements-dev.txt
commands = pre-commit run --all-files --show-diff-on-failure
[testenv:twine]
deps =
twine==5.1.1
build==1.2.2
commands =
python setup.py sdist
twine check dist/*
[testenv:docs]
changedir = docs
deps =
-rdocs/requirements.txt
commands =
sphinx-build -W -b html . {envtmpdir}/html