-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
87 lines (76 loc) · 1.49 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
[tox]
envlist = pre-commit,mypy,docs,doctest,twinecheck,min,min-extra,py38,py39,py310,py311,py312,extra
[testenv]
deps =
pytest
pytest-cov
commands =
pytest \
--cov-report=term-missing:skip-covered \
--cov-report=xml \
--cov=form2request \
{posargs:tests}
[min]
deps =
{[testenv]deps}
lxml==4.4.1
parsel==1.8.1
[testenv:min]
basepython = python3.8
deps =
{[min]deps}
w3lib==1.19.0
[testenv:extra]
deps =
{[testenv]deps}
requests
scrapy
web-poet
[testenv:min-extra]
basepython = {[testenv:min]basepython}
deps =
{[min]deps}
# web-poet >= 0.2.0 requires w3lib >= 1.22.0
w3lib==1.22.0
requests==1.0.0
scrapy==1.1.0
web-poet==0.2.0
[testenv:pre-commit]
deps =
pre-commit
commands = pre-commit run --all-files --show-diff-on-failure
[testenv:mypy]
basepython = python3.12
deps =
mypy==1.10.0
lxml-stubs
pytest
scrapy
types-requests
web-poet
commands = mypy form2request tests
[testenv:docs]
changedir = docs
deps =
-rdocs/requirements.txt
setenv =
READTHEDOCS_PROJECT=form2request
READTHEDOCS_VERSION=main
commands =
sphinx-build -W -n -b html . {envtmpdir}/html
[testenv:doctest]
deps =
{[testenv:extra]deps}
parsel
commands =
pytest \
--doctest-glob="*.rst" --doctest-modules \
{posargs:docs}
[testenv:twinecheck]
basepython = python3
deps =
twine==5.1.1
build==1.2.1
commands =
python -m build --sdist
twine check dist/*