0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 17:36:49 +01:00
Commit Graph

149 Commits

Author SHA1 Message Date
Matt Westcott
d4837edef9 Formalise support for Django 4.1 2022-08-04 13:52:33 +02:00
Matt Westcott
a0de60b1ea
Test against Django stable/4.1.x branch (#8774)
* Test against Django stable/4.1.x branch

* Use postgres 12 for stable/4.1.x
2022-06-29 10:18:41 +01:00
Matt Westcott
6b22835dc5 Formalise support for Django 4.0 2022-01-24 11:46:12 +00:00
Matt Westcott
d6d43338ef Drop support for Django <3.2 2022-01-14 14:23:56 +00:00
Matt Westcott
cf0ee13b49 Remove Python 3.6 support 2021-12-09 16:36:29 +00:00
Matt Westcott
b6b3a0c4ac Add support for Python 3.10
Quote all versions in test.yml (so that 3.10 isn't interpreted as 3.1)
2021-10-07 15:20:28 +10:00
Matt Westcott
85c97fe87f Drop support for Django 2.2 2021-04-30 10:33:41 +01:00
Jaap Roes
f6a35c719a Test on Django 3.2, stable and main branch 2021-04-26 13:12:56 +01:00
David Beitey
67235accfc Improve database settings and docs for tests (#6585)
This change makes several improvements:

* Use in-memory SQLite database for test migrations

  The default database is SQLite but its NAME (which SQLite uses as the
  filename) was `wagtail`, which isn't valid since
  the wagtail codebase already has a `wagtail/` directory.  Trying to
  run migration creation commands
  (https://docs.wagtail.io/en/latest/contributing/developing.html#running-migrations-for-the-test-app-models)
  produced an error:

  django.db.utils.OperationalError: unable to open database file

  because of this conflict.

  This change uses an in-memory database as the default database for
  tests. If DATABASE_NAME were set to a real file name, then
  running the migration command with SQLite creates an empty db with
  this filename on running `django-admin`.

  Other non-SQLite engines continue to use the original `wagtail` name,
  meaning that the `test_wagtail` database gets created just as before.

* Modifies the default values for database USER, PASSWORD, HOST etc to
  being an empty string rather than None, to match Django's
  [defaults](https://docs.djangoproject.com/en/stable/ref/settings/#host).
  This helps avoid any potential issues when Django and database engines
  are expecting this being a string.

* Adds documentation to `developing.rst` regarding installation of
  required database modules and available environment variables for database
  connection customisation

* Normalises the DATABASE_PASSWORD tests environment variable to match
  the name in Django's database settings object
2020-12-09 15:28:44 +00:00
Matt Westcott
6e1e36256a Remove elasticsearch 2 support 2020-11-05 12:04:12 +00:00
Matt Westcott
9bec60624c Version bump mysqlclient for Django 3.1 compatibility 2020-11-02 18:40:58 +00:00
Matt Westcott
5bcfcdd315 Formalise support for Python 3.9 2020-11-02 17:29:58 +00:00
Dan Braghis
5c05fc7d8e Bump isort requirement for testing and update configuration 2020-10-16 18:56:39 +01:00
Karl Hobley
f2dfff8061 Flake8 all other Python files 2020-10-05 14:27:50 +01:00
Matt Westcott
c3475c8fdf Add USE_TZ=False test run to Travis 2020-08-26 17:02:36 +01:00
Matt Westcott
0f637a22de Add emailuser test run to Travis 2020-08-26 17:02:36 +01:00
Matt Westcott
ec8e830b78 Test against Django 3.1 final and django-rest-framework 3.11.1 2020-08-06 11:25:47 +01:00
Matt Westcott
884b055289 Update tox/travis config to test against Django 3.1 stable branch 2020-07-31 15:41:47 +01:00
Matt Westcott
4df455ea9f
Remove support for Django 2.1 (#5840) 2020-02-18 13:55:53 +00:00
Matt Westcott
c31d426910 Update tox/travis test matrix for Django 3.0 final 2019-12-17 12:43:46 +00:00
Matt Westcott
94bb595d0c Add Django stable/3.0.x to CI matrix (#5685) 2019-11-06 18:13:14 +00:00
Matt Westcott
3e98563340
Drop support for Django 2.0 (#5684) 2019-11-06 17:05:04 +00:00
Sergey Fedoseev
eab9198f4c Move flake8 config to setup.cfg 2019-10-23 18:09:07 +02:00
pySilver
0149eff66a Implements ES7 support (#5611)
* Implements ES7 support

* Linter fix

* Adds docs

* isort fix

* Fixes typo
2019-10-10 11:00:14 +01:00
Matt Westcott
000c4990b4 Test Django master against django-modelcluster master 2019-09-25 20:35:03 +01:00
Jonathan Liuti
2de92f045c Upgrade minimum 6.x release for Elasticsearch to 6.4.0
Fix doc and test on ES6 python client compat

This commit changes the statement that version < 6.3.1 of the
elasticsearch python client should be used to instead state
that 6.4.0 is fine.

It also update the tests to reflect the statement.

Initially the `update_all_types` argument has been used to work
around an issue described in:
https://github.com/wagtail/wagtail/issues/2968

This argument was removed in elasticsearch-py 6.3.1 and making
use of it was raising an error.

With 6.4.0 nothing is raising anymore.
2019-08-18 15:37:11 +10:00
Matt Westcott
6358d84fa9 Test against Python 3.8 dev build 2019-08-06 14:25:00 +01:00
Matt Westcott
a304f0f9f8 Remove support for Python 3.4 2019-04-10 17:39:53 +01:00
Matt Westcott
a3283dd7fb Formalise support for Django 2.2 2019-04-01 19:59:04 +01:00
Andy Babic
234ee703ed Test against django's stable/2.2 branch 2019-02-26 19:31:53 +00:00
Benjamin Bach
5b0f2e1a54 First positional argument for tox as test module/case path 2018-10-30 12:16:45 +00:00
Matt Westcott
33e290b82d Fix linting failures for flake8 3.6 2018-10-25 18:03:29 +01:00
Matt Westcott
83f8988058 Add python3.7 to tox/travis config 2018-10-17 18:23:35 +01:00
Matt Westcott
f56318a67b Remove Django 1.11 from CI 2018-10-17 15:30:36 +01:00
Matt Westcott
1938159083 Specify file-based sqlite db in tox 2018-08-21 17:17:03 +01:00
Matt Westcott
035353dc3d fixup! test against Django master 2018-08-14 15:43:28 +01:00
Matt Westcott
6817eda153 test against Django master 2018-08-14 14:47:18 +01:00
Matt Westcott
659a57d75f Specify Elasticsearch <6.3.1 2018-08-10 14:27:07 +01:00
Matt Westcott
90201afbd7 Upgrade mysqlclient to a supported version 2018-08-09 00:34:38 +01:00
Matt Westcott
4986381a58 Test against Django 2.1 final 2018-08-01 15:21:45 +01:00
Ryan Verner
a657a75cd7 Fixes Django 2.1 breaking changes; QUERY_TERMS & auth_views.login() 2018-07-31 18:49:00 +01:00
Karl Hobley
cac3a65a3d Travis/tox configuration for Elasticsearch 6 2018-05-04 15:57:36 +01:00
Bertrand Bordage
e87ff07e7b Merge branch 'master' into search-query-api
# Conflicts:
#	wagtail/search/backends/db.py
#	wagtail/search/backends/elasticsearch2.py
2018-01-03 18:36:57 +01:00
Matt Westcott
cca7653839 Specify django-taggit 0.22.2 for Django 2.0 support 2018-01-02 14:47:07 +00:00
Andy Babic
4a7320a0db Use master branch of taggit for django 2.0 tests (jdufresne's pull has been merged, and the branch deleted) 2017-12-21 23:54:23 +00:00
Bertrand Bordage
ef125bde56 Merge branch 'master' into search-query-api
# Conflicts:
#	wagtail/search/tests/test_elasticsearch2_backend.py
#	wagtail/search/tests/test_elasticsearch5_backend.py
2017-12-14 18:59:03 +01:00
Matt Westcott
c96b2848bc Use django-modelcluster 4.0 2017-12-13 16:07:50 +00:00
Matt Westcott
55a045f723 Test against Django 2.0 final release 2017-12-04 12:58:29 +00:00
Matt Westcott
c2af41b4b9 Add Django 2.0 to travis 2017-12-04 12:58:29 +00:00
Bertrand Bordage
0bcf6a110d Merge branch 'master' into search-query-api
# Conflicts:
#	wagtail/contrib/postgres_search/backend.py
#	wagtail/contrib/postgres_search/utils.py
#	wagtail/core/tests/test_page_queryset.py
#	wagtail/search/backends/base.py
#	wagtail/search/backends/db.py
#	wagtail/search/backends/elasticsearch2.py
#	wagtail/search/queryset.py
#	wagtail/search/tests/elasticsearch_common_tests.py
#	wagtail/search/tests/test_backends.py
#	wagtail/search/tests/test_elasticsearch2_backend.py
#	wagtail/search/tests/test_elasticsearch5_backend.py
#	wagtail/search/utils.py
2017-11-30 01:53:09 +01:00