tox.ini 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. [tox]
  2. skipsdist = True
  3. usedevelop = True
  4. envlist = py{39,310,311,312,313}-dj{42,50,51,51stable,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. py39: python3.9
  13. py310: python3.10
  14. py311: python3.11
  15. py312: python3.12
  16. py313: python3.13
  17. deps =
  18. django-sendfile==0.3.6
  19. Embedly
  20. dj42: Django~=4.2.0
  21. dj50: Django~=5.0.0
  22. dj51: Django~=5.1.0
  23. dj51stable: git+https://github.com/django/django.git@stable/5.1.x#egg=Django
  24. djmain: git+https://github.com/django/django.git@main#egg=Django
  25. postgres: psycopg2>=2.6
  26. mysql: mysqlclient>=1.4,<2
  27. elasticsearch7: elasticsearch>=7,<8
  28. elasticsearch7: certifi
  29. elasticsearch8: elasticsearch>=8,<9
  30. elasticsearch8: certifi
  31. setenv =
  32. postgres: DATABASE_ENGINE=django.db.backends.postgresql
  33. mysql: DATABASE_ENGINE=django.db.backends.mysql
  34. mysql: DATABASE_HOST=localhost
  35. mysql: DATABASE_USER=root
  36. sqlite: DATABASE_NAME=wagtail.db
  37. emailuser: USE_EMAIL_USER_MODEL=yes
  38. notz: DISABLE_TIMEZONE=yes
  39. # Specific for Appveyor, see:
  40. # https://www.appveyor.com/docs/services-databases/#sql-server-2016
  41. mssql: DATABASE_ENGINE=sql_server.pyodbc
  42. mssql: DATABASE_HOST=(local)\SQL2016
  43. mssql: DATABASE_NAME=master
  44. mssql: DATABASE_USER=sa
  45. mssql: DATABASE_PASSWORD=Password12!