1
1
[tox]
2
- envlist = security,flake8,py{38,39,310,311}-scrapy{26,27,28,29}-redis{42,43,44,45}
3
- minversion = 1.7.0
2
+ envlist =
3
+ security
4
+ flake8
5
+ py{38,39,310,311}-scrapy{26,27,28,29}-redis{42,43,44,45,46,50}
6
+ minversion = 3.0.0
4
7
5
8
[base]
6
9
deps =
7
- scrapy>=2.6
8
- redis>=4.2
9
- six>=1.5.2
10
+ -r requirements-tests.txt
11
+ -r requirements.txt
10
12
11
13
[testenv]
12
14
basepython =
@@ -16,26 +18,26 @@ basepython =
16
18
py311: python3.11
17
19
deps =
18
20
{[base]deps}
19
- mock
20
- pytest
21
- pytest-cov
21
+ scrapy26: scrapy~=2.6.0
22
+ scrapy27: scrapy~=2.7.0
23
+ scrapy28: scrapy~=2.8.0
24
+ scrapy29: scrapy~=2.9.0
25
+ scrapy210: scrapy~=2.10.0
26
+ scrapy211: scrapy~=2.11.0
27
+ redis42: redis~=4.2.0
28
+ redis43: redis~=4.3.0
29
+ redis44: redis~=4.4.0
30
+ redis45: redis~=4.5.0
31
+ redis46: redis~=4.6.0
32
+ redis50: redis~=5.0.0
22
33
commands =
23
- scrapy26: pip install scrapy ==2.6.3
24
- scrapy27: pip install scrapy ==2.7.1
25
- scrapy28: pip install scrapy ==2.8.0
26
- scrapy29: pip install scrapy ==2.9.0
27
- redis42: pip install redis ==4.2.0
28
- redis43: pip install redis ==4.3.6
29
- redis44: pip install redis ==4.4.4
30
- redis45: pip install redis ==4.5.5
31
- pip install .
32
34
python -m pytest # --cov-report term --cov=scrapy_redis
33
35
34
36
[testenv:flake8]
35
- basepython = python3.11
37
+ basepython =
38
+ python3.11
36
39
deps =
37
40
{[base]deps}
38
- flake8 # https://github.com/tholo/pytest-flake8/issues/81
39
41
commands =
40
42
flake8 --ignore =W503,E265,E731 docs/ tests/
41
43
@@ -46,31 +48,17 @@ deps =
46
48
commands =
47
49
bandit -r -c .bandit.yml src/ tests/
48
50
49
- [testenv:pylint]
50
- basepython = python3.11
51
- deps =
52
- {[base]deps}
53
- pylint ==2.12.2
54
- commands =
55
- pylint setup.py docs/ src/ tests/
56
-
57
51
[testenv:pytest]
58
52
basepython = python3.11
59
53
deps =
60
54
{[testenv]deps}
61
- scrapy ==2.6.1
62
- redis ==4.2.2
63
- allowlist_externals = sudo
64
55
commands =
65
- sudo apt-get update
66
- sudo apt-get install -y redis
67
- sudo systemctl start redis-server
68
- pip install .
69
56
python -m pytest --cov-report term --cov =scrapy_redis
70
57
71
58
[testenv:build]
72
59
basepython =python3.11
73
60
deps =
74
61
{[base]deps}
75
- commands =
76
- pip install .
62
+ build
63
+ commands =
64
+ python -m build
0 commit comments