-
Notifications
You must be signed in to change notification settings - Fork 325
/
tox.ini
113 lines (91 loc) · 3.5 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
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
[tox]
envlist =
py{39,310,311}-django42,
py{310,311,312}-django{50,51},
py312-django52,
py{39,310}-django42-jinja2,
py{310,311}-django{42,50}-jinja2,
py312-django{50,51}-jinja2,
gettext,flake8,docs,coverage
[gh-actions]
python =
3.12: py312-django50, py312-django51, py312-django52, py312-django51-jinja2
3.11: p311-django-51, p311-django-50, p311-django-50-jinjia, p311-django-42, p311-django-42-jinjia
3.10: py310-django42, py310-django42-jinja2, py310-django50, py310-django51, py310-django50-jinja2
3.9: py39-django42, py39-django42-jinja2
[testenv]
changedir = testproject
commands =
python -Wd manage.py test captcha
setenv =
PYTHONDONTWRITEBYTECODE=1
deps =
django42: Django>=4.2a,<4.3
django50: Django>=5.0a,<5.1
django51: Django>=5.1,<5.2
django52: https://github.com/django/django/tarball/main
py{39,310,311,312}-django{42,50}: python3-memcached
jinja2
Pillow
djangorestframework
extras =
test
[testenv:py39-django42-jinja2]
commands = python -Wd manage.py test captcha --settings jinja2_settings
[testenv:py310-django42-jinja2]
commands = python -Wd manage.py test captcha --settings jinja2_settings
[testenv:py310-django50-jinja2]
commands = python -Wd manage.py test captcha --settings jinja2_settings
[testenv:py311-django50-jinja2]
commands = python -Wd manage.py test captcha --settings jinja2_settings
[testenv:py312-django50-jinja2]
commands = python -Wd manage.py test captcha --settings jinja2_settings
[testenv:gettext]
basepython = python3.12
changedir = captcha/locale/
allowlist_externals =
msgfmt
commands =
msgfmt -c -o bg/LC_MESSAGES/django.mo bg/LC_MESSAGES/django.po
msgfmt -c -o cs/LC_MESSAGES/django.mo cs/LC_MESSAGES/django.po
msgfmt -c -o de/LC_MESSAGES/django.mo de/LC_MESSAGES/django.po
msgfmt -c -o en/LC_MESSAGES/django.mo en/LC_MESSAGES/django.po
msgfmt -c -o es/LC_MESSAGES/django.mo es/LC_MESSAGES/django.po
msgfmt -c -o fa/LC_MESSAGES/django.mo fa/LC_MESSAGES/django.po
msgfmt -c -o fr/LC_MESSAGES/django.mo fr/LC_MESSAGES/django.po
msgfmt -c -o it/LC_MESSAGES/django.mo it/LC_MESSAGES/django.po
msgfmt -c -o ja/LC_MESSAGES/django.mo ja/LC_MESSAGES/django.po
msgfmt -c -o nl/LC_MESSAGES/django.mo nl/LC_MESSAGES/django.po
msgfmt -c -o pl/LC_MESSAGES/django.mo pl/LC_MESSAGES/django.po
msgfmt -c -o pt_BR/LC_MESSAGES/django.mo pt_BR/LC_MESSAGES/django.po
msgfmt -c -o ru/LC_MESSAGES/django.mo ru/LC_MESSAGES/django.po
msgfmt -c -o sk/LC_MESSAGES/django.mo sk/LC_MESSAGES/django.po
msgfmt -c -o sv/LC_MESSAGES/django.mo sv/LC_MESSAGES/django.po
msgfmt -c -o tr/LC_MESSAGES/django.mo tr/LC_MESSAGES/django.po
msgfmt -c -o uk/LC_MESSAGES/django.mo uk/LC_MESSAGES/django.po
msgfmt -c -o zh_CN/LC_MESSAGES/django.mo zh_CN/LC_MESSAGES/django.po
msgfmt -c -o zh_Hans/LC_MESSAGES/django.mo zh_Hans/LC_MESSAGES/django.po
[testenv:flake8]
basepython = python3.12
deps = flake8
commands=
flake8 {toxinidir}/captcha
[testenv:docs]
basepython = python3.12
deps =
sphinx
sphinx-book-theme
changedir = docs
commands=
sphinx-build -b html . _build/html
[testenv:coverage]
changedir = testproject
passenv =
CAPTCHA_FLITE_PATH
CAPTCHA_SOX_PATH
deps =
coverage
commands=
# coverage debug config
coverage run --rcfile=.coveragerc manage.py test captcha
coverage report --rcfile=.coveragerc