tox.ini 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. [tox]
  2. skipsdist = True
  3. usedevelop = True
  4. envlist = py{38,39,310,311,312}-dj{42,50,50stable,main}-{sqlite,postgres,mysql,mssql}-{elasticsearch8,elasticsearch7,noelasticsearch}-{customuser,emailuser}-{tz,notz},
  5. [testenv]
  6. install_command = pip install -e ".[testing]" -U {opts} {packages}
  7. commands =
  8. elasticsearch7: coverage run runtests.py wagtail.search wagtail.documents wagtail.images --elasticsearch7
  9. elasticsearch8: coverage run runtests.py wagtail.search wagtail.documents wagtail.images --elasticsearch8
  10. noelasticsearch: coverage run runtests.py {posargs}
  11. basepython =
  12. py38: python3.8
  13. py39: python3.9
  14. py310: python3.10
  15. py311: python3.11
  16. py312: python3.12
  17. deps =
  18. django-sendfile==0.3.6
  19. Embedly
  20. dj42: Django~=4.2.0
  21. dj50: Django~=5.0.0
  22. dj50stable: git+https://github.com/django/django.git@stable/5.0.x#egg=Django
  23. djmain: git+https://github.com/django/django.git@main#egg=Django
  24. postgres: psycopg2>=2.6
  25. mysql: mysqlclient>=1.4,<2
  26. elasticsearch7: elasticsearch>=7,<8
  27. elasticsearch7: certifi
  28. elasticsearch8: elasticsearch>=8,<9
  29. elasticsearch8: certifi
  30. setenv =
  31. postgres: DATABASE_ENGINE=django.db.backends.postgresql
  32. mysql: DATABASE_ENGINE=django.db.backends.mysql
  33. mysql: DATABASE_HOST=localhost
  34. mysql: DATABASE_USER=root
  35. sqlite: DATABASE_NAME=wagtail.db
  36. emailuser: USE_EMAIL_USER_MODEL=yes
  37. notz: DISABLE_TIMEZONE=yes
  38. # Specific for Appveyor, see:
  39. # https://www.appveyor.com/docs/services-databases/#sql-server-2016
  40. mssql: DATABASE_ENGINE=sql_server.pyodbc
  41. mssql: DATABASE_HOST=(local)\SQL2016
  42. mssql: DATABASE_NAME=master
  43. mssql: DATABASE_USER=sa
  44. mssql: DATABASE_PASSWORD=Password12!