-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtox.ini
51 lines (51 loc) · 2.17 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
# http://tox.readthedocs.io/en/latest/config.html
# http://stackoverflow.com/questions/18962403/how-do-i-run-tox-in-a-project-that-has-no-setup-py
# https://github.com/django/django-formtools/blob/master/.travis.yml
# https://github.com/pennersr/django-allauth/blob/master/.travis.yml
# Running two previous LTS and latest version.
# https://en.wikipedia.org/wiki/History_of_Python#Table_of_versions
# https://en.wikipedia.org/wiki/Django_(web_framework)#Version_history
[tox]
args_are_paths = false
skipsdist = True
recreate = True
skip_missing_interpreters=true
envlist =
py{3.10,3.11,3.12,3.13}-django-{4.2,5.1}-bs{3,4,5}
# py3.10-django-{4.1,master}-bs{3,4,5}
[testenv]
basepython =
py3.10: python3.10
py3.11: python3.11
py3.12: python3.12
py3.13: python3.13
# usedevelop = true
# whitelist_externals = make
# commands = make test
# Use -U to make sure latest django-jinja-knockout is installed from github master.
install_command = pip install -U {opts} {packages}
commands =
/bin/mkdir -p logs
/bin/mkdir -p fixtures
pip freeze
# With Django 2.2 test fails unless database migration is run separately before.
python manage.py migrate -v 2
python -c "import sys, sqlite3; db = 'test.sqlite3'; print('db name: \{\}'.format(db)); conn = sqlite3.connect(db); [print(row, file=sys.stderr) for row in conn.execute('select name from sqlite_master where type = \'table\'')]"
# Since Django 1.10 -Wa or -Wd is required to show deprecation warnings.
python -Wa manage.py test --keepdb --verbosity 2
pip_pre = true
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}
DJK_TEST_DB_NAME= test.sqlite3
DJK_WEBDRIVER = django_jinja_knockout.webdriver.headless_chrome.webdriver
deps =
bs3: git+https://github.com/Dmitri-Sintsov/djk-bootstrap3.git
bs4: git+https://github.com/Dmitri-Sintsov/djk-bootstrap4.git
bs5: git+https://github.com/Dmitri-Sintsov/djk-bootstrap5.git
django-4.2: Django>=4.2,<4.3
django-4.2: django-allauth
django-5.1: Django>=5.1,<5.2
django-5.1: django-allauth
# django-master: https://github.com/django/django/archive/master.tar.gz
-r{toxinidir}/requirements/dev.txt
-r{toxinidir}/requirements/test.txt