-
Notifications
You must be signed in to change notification settings - Fork 101
Expand file tree
/
Copy pathtox.ini
More file actions
106 lines (97 loc) · 2.26 KB
/
Copy pathtox.ini
File metadata and controls
106 lines (97 loc) · 2.26 KB
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
[tox]
envlist = mypy,docs,twinecheck,min,min-monitoring,py311,py312,py313,py314,monitoring
[testenv]
deps =
packaging
pytest
pytest-cov
pytest-mock
commands =
pytest \
{posargs: \
--cov=spidermon \
--cov-config=pyproject.toml \
--cov-report= \
--cov-report=xml \
-W default \
tests \
}
[testenv:mypy]
basepython = python3.10
deps =
mypy==2.3.1
boto3-stubs[s3]==1.42.96
pytest==9.0.3
types-jsonschema==4.26.0.20260408
types-requests==2.33.0.20260408
extras =
monitoring
commands =
mypy {posargs:spidermon tests}
[testenv:docs]
basepython = python3.13 # https://github.com/scrapy/scrapy/issues/7087
deps =
-r {toxinidir}/docs/requirements.txt
extras =
monitoring
changedir = docs
commands =
sphinx-build -nW -b html . {envtmpdir}/html
sphinx-build -W -b linkcheck . {envtmpdir}/linkcheck
[testenv:twinecheck]
basepython = python3
deps =
twine==7.0.0
build==1.5.0
commands =
python -m build --sdist
twine check dist/*
[testenv:min]
basepython = python3.10
deps =
{[testenv]deps}
jsonschema[format]==4.21.0
python-slugify==5.0.0
[testenv:py314]
commands =
pytest \
{posargs: \
--cov=spidermon \
--cov-config=pyproject.toml \
--cov-report= \
tests \
}
[monitoring]
deps =
pytest-twisted
[testenv:min-monitoring]
basepython = python3.10
deps =
{[testenv:min]deps}
{[monitoring]deps}
boto3==1.10.0
itemadapter==0.1.0
jinja2==3.0.0
premailer==2.7.0
requests==2.19.0
scrapinghub==2.4.0
scrapinghub-entrypoint-scrapy==0.11.2
scrapy==2.7.0
# scrapy==2.7.0 declares Twisted>=18.9.0 with no upper bound, so it would
# otherwise resolve to the newest Twisted, which has since dropped private
# internals (e.g. twisted.internet._sslverify._setAcceptableProtocols)
# that scrapy 2.7.0's TLS setup still imports. Pin to a Twisted release
# contemporary with scrapy 2.7.0 so the declared floor is actually installable.
Twisted==22.10.0
sentry_sdk==0.1.0
slack_sdk==3.9.0
extras =
monitoring
[testenv:monitoring]
basepython = python3.13 # https://github.com/scrapy/scrapy/issues/7087
deps =
{[testenv]deps}
{[monitoring]deps}
extras =
monitoring
commands = {[testenv:py314]commands}