forked from jazzband/sorl-thumbnail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
67 lines (62 loc) · 1.55 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
[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39
3.10: py310
[gh-actions:env]
DJANGO =
2.2: django22
3.1: django31
3.2: django32
4.0: django40
TARGET =
pil: pil
imagemagick: imagemagick
graphicsmagick: graphicsmagick
redis: redis
wand: wand
dbm: dbm
qa: qa
[tox]
skipsdist = True
envlist =
py38-qa,
py{36,37,38,39,310}-django{22,31,32}-{pil,imagemagick,graphicsmagick,redis,dynamodb,wand,pgmagick,dbm,vipsthumbnail}
[testenv]
deps =
pytest
pytest-cov
pytest-django
pillow
redis: redis
dynamodb: boto
pgmagick: pgmagick
wand: wand
django22: django>=2.2,<2.3
django31: django>=3.1,<3.2
django32: django>=3.2,<3.3
django40: django>=4.0,<4.1
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}
pil: DJANGO_SETTINGS_MODULE=tests.settings.pil
imagemagick: DJANGO_SETTINGS_MODULE=tests.settings.imagemagick
graphicsmagick: DJANGO_SETTINGS_MODULE=tests.settings.graphicsmagick
vipsthumbnail: DJANGO_SETTINGS_MODULE=tests.settings.vipsthumbnail
redis: DJANGO_SETTINGS_MODULE=tests.settings.redis
dynamodb: DJANGO_SETTINGS_MODULE=tests.settings.dynamodb
wand: DJANGO_SETTINGS_MODULE=tests.settings.wand
pgmagick: DJANGO_SETTINGS_MODULE=tests.settings.pgmagick
dbm: DJANGO_SETTINGS_MODULE=tests.settings.dbm
commands =
python -m pytest -rw --cov-append --cov-config setup.cfg --cov sorl --cov-report=xml {posargs:}
[testenv:py38-qa]
skip_install = True
deps =
flake8
flake8-bugbear
rstvalidator
commands =
flake8 --show-source sorl/
python -m rstvalidator README.rst CHANGES.rst CONTRIBUTING.rst