forked from scrapy-plugins/scrapy-zyte-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
189 lines (168 loc) · 3.72 KB
/
Copy pathtox.ini
File metadata and controls
189 lines (168 loc) · 3.72 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
[tox]
requires =
sphinx-scrapy @ git+https://github.com/scrapy/sphinx-scrapy.git@0.8.4
envlist =
pre-commit
mypy
min-scrapy-2x0
min-scrapy-2x1
min-scrapy-2x3
min-scrapy-2x4
min-scrapy-2x5
min-scrapy-2x6
min-scrapy-2x7
min-extra
min-provider
min-x402
py39
py310
py311
py312
py313
extra
provider
x402
docs
twine
[testenv]
deps =
pytest
pytest-cov >= 7.0.0
pytest-twisted
pytest-xdist
commands =
py.test \
--cov-report=term-missing \
--cov-report=html:coverage-html \
--cov-report=xml \
--cov=scrapy_zyte_api \
--junitxml=test-results/junit.xml \
--reactor=asyncio \
{posargs:scrapy_zyte_api tests}
[testenv:pre-commit]
deps = pre-commit
commands = pre-commit run --all-files --show-diff-on-failure
[testenv:mypy]
extras = provider
deps =
mypy==1.18.2
zyte-api==0.8.1
pytest==9.0.3
scrapy-poet==0.27.1
commands = mypy scrapy_zyte_api tests
[min]
deps =
{[testenv]deps}
packaging==20.0
# https://stackoverflow.com/a/73046084
Twisted==21.7.0
# https://github.com/scrapy/scrapy/issues/5635
pyopenssl==22.0.0
# https://github.com/aws/aws-sam-cli/issues/4527#issuecomment-1368871248
cryptography<39
[min-pre-scrapy-2x5]
deps =
{[min]deps}
zyte-api==0.6.0
setuptools==81.0.0
parsel==1.7.0
typing_extensions==4.1.0
# Earliest supported Scrapy version.
[testenv:min-scrapy-2x0]
basepython=python3.10
deps =
{[min-pre-scrapy-2x5]deps}
scrapy==2.0.1
# Scrapy version introducing Response.ip_address.
[testenv:min-scrapy-2x1]
basepython=python3.10
deps =
{[min-pre-scrapy-2x5]deps}
scrapy==2.1.0
# Latest Scrapy version since 2.0.1 not requiring to install the reactor early.
[testenv:min-scrapy-2x3]
basepython=python3.10
deps =
{[min-pre-scrapy-2x5]deps}
scrapy==2.3.0
# First Scrapy version requiring to install the reactor early.
[testenv:min-scrapy-2x4]
basepython=python3.10
deps =
{[min-pre-scrapy-2x5]deps}
scrapy==2.4.0
# Scrapy version introducing Response.protocol.
[testenv:min-scrapy-2x5]
basepython=python3.10
deps =
{[min]deps}
scrapy==2.5.0
zyte-api==0.6.0
typing_extensions==4.1.0
# First Scrapy version since 2.4.0 where installing the reactor earlier is not
# necessary.
[testenv:min-scrapy-2x6]
basepython=python3.10
deps =
{[min]deps}
scrapy==2.6.0
zyte-api==0.6.0
typing_extensions==4.1.0
# First Scrapy version with centralizing request fingerprinting support.
[testenv:min-scrapy-2x7]
basepython=python3.10
deps =
{[min]deps}
scrapy==2.7.0
zyte-api==0.6.0
typing_extensions==4.1.0
[testenv:min-extra]
basepython=python3.10
deps =
{[testenv:min-scrapy-2x0]deps}
scrapy-crawlera==1.1.0
scrapy-zyte-smartproxy==2.0.0
[testenv:min-provider]
basepython=python3.10
extras = provider
deps =
# scrapy-poet >= 0.4.0 depends on scrapy >= 2.6.0
{[testenv:min-scrapy-2x6]deps}
andi==0.6.0
scrapy-poet==0.22.3
web-poet==0.17.0
zyte-common-items==0.27.0
[testenv:min-x402]
basepython=python3.10
extras = x402
deps =
{[min]deps}
setuptools==81.0.0
parsel==1.7.0
scrapy==2.0.1
# https://github.com/zytedata/python-zyte-api/blob/0.8.0/setup.py#L29-L30
zyte-api[x402]==0.8.0
eth-account==0.13.7
x402==0.1.1
[testenv:extra]
basepython=python3.13
deps =
{[testenv]deps}
scrapy-crawlera
scrapy-zyte-smartproxy
[testenv:provider]
extras = provider
[testenv:x402]
extras = x402
[testenv:scrapy-unreleased]
deps =
{[testenv]deps}
scrapy @ git+https://github.com/scrapy/scrapy@master
extras = provider
[testenv:twine]
deps =
twine==6.1.0
build==1.2.2.post1
commands =
python -m build --sdist
twine check dist/*