forked from mbi/django-rosetta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
77 lines (62 loc) · 2.12 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
[tox]
envlist =
flake8,
py{38,39,310}-django{32,40,41,42},
gettext,
docs
[gh-actions]
python =
3.10: py310-django32, py310-django40, py310-django41, py310-django42
3.9: py39-django32, py39-django40, py39-django41, py39-django42
3.8: py38-django32, py38-django40, py38-django41, py38-django42
skipsdist = True
minversion = 3.8.0
requires = virtualenv>=20.3.0
[testenv]
changedir = testproject
commands =
python -Wd manage.py test rosetta {posargs}
setenv =
PYTHONDONTWRITEBYTECODE=1
deps =
django32: Django>=3.2,<=3.2.99
django40: Django>=4.0,<4.1
django41: Django>=4.1a,<4.2
django42: Django>=4.2a,<4.3
pymemcache
requests
polib>=1.1.0
goslate
vcrpy
coverage
[testenv:gettext]
basepython = python3
changedir = rosetta/locale/
whitelist_externals =
msgfmt
commands =
msgfmt -c -o ar/LC_MESSAGES/django.mo ar/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 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 hu/LC_MESSAGES/django.mo hu/LC_MESSAGES/django.po
msgfmt -c -o it/LC_MESSAGES/django.mo it/LC_MESSAGES/django.po
msgfmt -c -o ky/LC_MESSAGES/django.mo ky/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 ru/LC_MESSAGES/django.mo ru/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_hans/LC_MESSAGES/django.mo zh_hans/LC_MESSAGES/django.po
[testenv:docs]
deps = sphinx
changedir = docs
commands=
sphinx-build -W -b html . _build/html
[testenv:flake8]
basepython = python3
deps = flake8==3.9.2
commands=
flake8 {toxinidir}/rosetta