Wykres commitów

133 Commity (070137363bb98ad182dbfd790c44e59a854af21e)

Autor SHA1 Wiadomość Data
Karl Hobley 752fbca24a Add Elasticsearch 5 to Travis/tox 2016-11-30 16:31:20 +00:00
Matt Westcott b4a4e5eb92 Pass update_all_types=True to put_mapping on ES2 - workaround for #2968 2016-10-05 13:45:43 +01:00
Matt Westcott 71ce47bc5a Configure Travis to test against the latest Django stable branch on git (#2967) 2016-09-21 12:40:57 +01:00
Karl Hobley daa82936d7 Elasticsearch 2 support (#2573)
* Created Elasticsearch 2 backend

* Added tests for Elasticsearch 2 backend

* Split models up into different indices

pages, images and documents are now in separate indices

* Prefix fields of child models to prevent mapping clashes

* Replaced index_analyzer with analyzer/search_analyzer

index_analyzer has been removed in Elasticsearch 2.0

https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking_20_mapping_changes.html#_analyzer_mappings

There's no indication in Elasticsearch's docs that this wouldn't work on Elasticsearch 1.x. However, we found that the new configuration isn't reliable on Elasticsearch 1.6 and below (causes the test_query_analyzer test to fail randomly).

* Implemented new way of representing content types in search index

Instead of using a long string of model names that is queried using a
"prefix" query, we instead use a multi-value string field and query it
using a simple "match" query.

The only reason why this isn't implemented in the Elasticsearch 1.x
backend yet is backwards compatibility

* Added another child model of SearchTest with clashing field mapping

This checks that the namespacing of fields on child models is working properly (if it doesn't the update_index tests will fail)

* Added tests for get_model_root function

* fixup! Added tests for get_model_root function

* Docs updates for Elasticsearch 2 support

Also tweak examples to use elasticsearch2 backend by default

* Test against Elasticsearch 2 on travis
2016-08-31 13:46:57 +03:00
Matt Westcott 4a1b103558 Make elasticsearch-specific tests from wagtailimages / wagtaildocs run under tox 2016-07-04 20:32:31 +01:00
Matt Westcott b85c340163 Move flake8 config to setup.cfg 2016-06-23 16:31:44 +01:00
Mikalai Radchuk 408dcbed43 CI configuration for Django 1.10 (#2724)
Adds Django 1.10a1 into tox.ini

Also adds Django 1.10 into .travis.yaml
2016-06-17 10:12:53 +01:00
Matt Westcott f8d7970cbb Remove Jinja2 from tox.ini as it's now in testing_extras (see #2583) 2016-05-17 17:36:29 +01:00
Matt Westcott 3b0c074ba7 Eliminate duplication of dependencies in tox.ini
Fixes #2317
2016-05-04 14:12:27 +01:00
Matt Westcott c495f02baf Make elasticsearch switchable in tox, allow ES failures in travis 2016-05-03 13:54:26 +01:00
Matt Westcott e06f6acaba Tweak dependencies to allow Willow 0.3b4 to be installed, via either tox or setup.py 2016-03-07 18:29:24 +00:00
Karl Hobley 1565e74101 Willow 0.3 support 2016-03-07 18:29:23 +00:00
Michael van Tellingen e7ace5c181 Dependency update: Support django-treebeard 3.0 and 4.0 releases
The admin extensions in django treebeard 3.0 are not compatible with
Django 1.9. Although these are not used by Wagtail they are used in
other projects (e.g. Oscar), so we should allow treebeard 4.0 which
is compatible with Django 1.9.
2016-03-07 12:33:28 +00:00
Karl Hobley be82fa975d Removed django-compressor 2016-02-03 16:16:11 +00:00
Matt Westcott 04fdd5f352 Remove Django 1.7 support from documentation, requirements and CI definitions 2016-01-05 17:38:29 +00:00
Karl Hobley de93b14a08 Temporarily pinned Django versions
There appears to be a bug in Django 1.9.1/1.8.7 causing the migrations to fail.
2016-01-04 12:25:26 +00:00
Matt Westcott 84d7666e5c Unpin html5lib version 2015-12-11 13:27:57 +00:00
Matt Westcott b5dc2696c4 feat(django1.9): Upgrade to django-taggit 0.17.5 (required for Django 1.9 compatibility) 2015-12-09 11:40:35 +00:00
Karl Hobley b382f89b55 feat(django 1.9): Test on django-modelcluster 1.1 beta 1 2015-12-09 11:40:35 +00:00
Karl Hobley 2b38263fba feat(django 1.9): Added Django 1.9 to tox/travis 2015-12-09 11:40:35 +00:00
Maris Serzans c92d12755c pep8 compliance 120 characters / line 2015-12-08 14:50:32 +00:00
Karl Hobley 78a5324435 Cleanup E128 errors 2015-12-04 10:00:15 +00:00
Karl Hobley 7175525d02 Cleanup E126 errors 2015-12-04 09:48:20 +00:00
Karl Hobley 6cd293f081 Cleanup E124 errors 2015-12-04 09:42:22 +00:00
Karl Hobley 1957af9ea8 Cleanup E302 errors 2015-12-04 09:32:16 +00:00
Karl Hobley 113f8e59ff Cleanup E261 errors 2015-12-04 09:20:22 +00:00
Karl Hobley 83d3aaeb2f Added --elasticsearch flag to travis/tox configuration 2015-11-19 16:23:24 +00:00
Tim Heap b3560b7941 Use six from Django, remove six from tox.ini
All referencs to `six` were removed in #1411 favouring
`django.utils.six`, except for one in `tox.ini` where it was installed
as a dependency. Because it was still installed in the test environment,
a few references to `six` crept back in. These will cause an ImportError
when users do not have `six` installed.

These references have been fixed, and `six` has been removed from
`tox.ini`
2015-10-27 16:37:05 +11:00
Tim Heap cf7aaae09c Add tests for Jinja template tags 2015-10-01 20:04:06 +10:00
Tim Heap 17daa4112b Add Python 3.5 to tox.ini, travis.yml 2015-09-16 14:18:53 +10:00
Matt Westcott d67fe598bb Remove 'requests' from tox dependencies 2015-08-26 16:38:38 +01:00
Tom Christie b5a46f3dee Added REST framework to tox 2015-07-21 15:03:46 +01:00
Karl Hobley 4990f2780f Removed dependency on unicodecsv 2015-06-02 00:18:48 +01:00
Karl Hobley 23969890cb Merge remote-tracking branch 'takeflight/refactor/remove-libsass' 2015-05-19 17:25:52 +01:00
jordij e33ff5d34d documents served using django-sendfile 2015-05-07 09:33:05 +01:00
Tim Heap ddebafa119 Remove libsass dependency, precompile CSS for distribution
Depending on libsass for all Wagtail installations was causing issues
with various operating systems, dramatically increasing installation
times, and preventing front end development adopting modern practices.

libsass has been removed as a dependency. Sass files are compiled before
release as a dependency of the `sdist` setup command. Sass compilation
is done through `gulp`. People wishing to hack on the frontend assets
should now install wagtail locally, install the node dependencies, and
run `gulp`:

    $ pip install -e path/to/wagtail
    $ cd path/to/wagtail
    $ npm install
    $ npm start

All the templates and JS files have been updated to reference the new
compiled CSS files instead of the Sass files.

Precompiled CSS for jquery-ui and similar have been moved out of the
`scss/` directory to the `css/` directory.
2015-05-01 08:53:04 +10:00
Karl Hobley bb61b33783 Update tox pip requirements 2015-04-13 20:44:40 +01:00
Karl Hobley 2546c758d5 Ignore E126 errors 2015-04-03 19:31:42 +01:00
Karl Hobley 321d2261a1 Ignore E124 errors 2015-04-03 19:31:42 +01:00
Karl Hobley f209a25cfa Ignore E303 errors 2015-04-03 19:31:42 +01:00
Karl Hobley bc192388c1 Ignore E302 errors 2015-04-03 18:52:58 +01:00
Karl Hobley 304f8f8e66 Ignore E261 errors 2015-04-03 18:52:53 +01:00
Karl Hobley 27b95dce86 Ignore E128 errors 2015-04-03 18:52:53 +01:00
Karl Hobley a0b3dcf434 Don't flake8 project template 2015-04-03 18:52:53 +01:00
Karl Hobley e68856de7b Test for flake8 errors in tox/travis
Ignoring E501
2015-04-03 16:56:06 +01:00
Karl Hobley 0181fb16f0 Use generative tox config 2015-04-03 14:38:08 +01:00
Karl Hobley bbfa70d8e8 Use Willow 0.2 2015-04-01 17:42:55 +01:00
Karl Hobley 7b50391e18 Bump willow version to 0.2b2
This should fix #1084
2015-04-01 14:13:12 +01:00
Karl Hobley db1cf75a6b Update Willow in tox 2015-03-31 14:45:27 +01:00
Karl Hobley e207b962eb Add MySQL to tox/travis 2015-03-27 12:28:00 +00:00
Karl Hobley f7d123fa7c Install Django 1.8 from tar archive 2015-03-26 11:15:32 +00:00
Matt Westcott 3abfa63046 Specify 1.7.1 as the minimum supported Django version 2015-03-17 14:49:29 +00:00
Karl Hobley a4ffd3b485 Update taggit
Also, test SQLite with latest version of Django
2015-03-04 09:47:40 +00:00
Karl Hobley b019bc2261 Test with taggit 0.12.3 2015-03-04 08:42:42 +00:00
Karl Hobley d7ced6f243 Tox: Use dev django-taggit when testing Django 1.8 2015-03-03 22:55:12 +00:00
Matt Westcott a8ec3b1af7 specify DATABASE_USER 2015-02-23 16:06:40 +00:00
Matt Westcott c46e97c9ce pass DATABASE_HOST=localhost for mysql tests 2015-02-23 15:37:02 +00:00
Matt Westcott 0b31f9933f enable tox tests for mysql 2015-02-23 15:33:36 +00:00
Matt Westcott 55cac3b907 upgrade django-modelcluster to 0.5 2015-02-03 11:11:42 +00:00
Karl Hobley d63eeed4a0 Update to treebeard 3.0. Fixes #930 2015-01-29 13:19:41 +00:00
Karl Hobley 878addd737 Removed Python 3.2 from travis/tox 2015-01-28 09:43:50 +00:00
Karl Hobley 2d9e39d084 Added Django 1.8 to tox/travis 2015-01-28 09:42:10 +00:00
Karl Hobley 4a804967d9 Added Willow to install requirements 2015-01-15 10:46:01 +00:00
Matt Westcott 09663a6653 Django 1.7.2 has an apparent regression that breaks django-taggit with sqlite https://github.com/alex/django-taggit/issues/285 - pin sqlite tox tests to 1.7.1 for now 2015-01-06 14:48:49 +00:00
Karl Hobley b9ce897441 Removed support for Django 1.6 and Python 2.6 2015-01-02 17:27:54 +00:00
Karl Hobley 5e905fe7e7 Travis: Install Django 1.7 from PIP 2014-12-23 13:41:50 +00:00
Matt Westcott 5cb428608b pin libsass to version 0.5.1 in tox.ini, since the current Travis VM can't install 0.6 - see #760 2014-10-28 10:51:57 +00:00
Karl Hobley 28b0f29d18 Clear submitted_for_moderation and approved_go_live_at of copied revisions 2014-09-16 09:18:49 +01:00
Matt Westcott 075c9e8da0 add python3 + django 1.7 + sqlite as valid tox config 2014-08-27 15:43:46 +01:00
Karl Hobley bab28400de Updated django-taggit to 0.12.1 2014-08-27 11:11:00 +01:00
Karl Hobley 56e4dacc5a Merge remote-tracking branch 'torchbox/master' into dj17_2
Conflicts:
	.travis.yml
	tox.ini
2014-08-27 09:17:07 +01:00
Karl Hobley 43ebd845b6 Added Django 1.7 to tox settings. Use tox on travis 2014-07-28 15:52:42 +01:00
Karl Hobley b1d412f0f6 Set cache expire headers to two months on frontend image serve view 2014-07-18 14:58:34 +01:00
Matt Westcott 9938ecf960 add py32-dj16-sqlite to the list of tox environments that fail due to iteritems in South 2014-07-03 12:11:34 +01:00
Karl Hobley 9755ece5cc Added python 3.2 to tox settings 2014-07-02 21:45:38 +01:00
Neal Todd e31ff7f3c4 Requirements version updates, documenting dependencies via requirements.io and updating supported python version docs. 2014-07-02 17:31:06 +01:00
Matt Westcott 38ca434aeb add tox tests for postgres on python3.3 and python3.4 2014-07-02 17:14:34 +01:00
Karl Hobley 4786e34a46 Import unittest2 from Django 2014-05-10 13:21:21 +01:00
Matt Westcott ef9e877fa9 remove mysql from tox tests for now, until we can fix the foreign key constraint error in wagtail.wagtailimages.tests.TestImageEditView 2014-05-01 14:48:51 +01:00
Matt Westcott 16ca3ce280 Add MySQL to tox tests 2014-05-01 12:21:17 +01:00
Matt Westcott 41c5c1c457 Python 2.6 compatibility - fixes #156 2014-04-24 16:41:58 +01:00
Matt Westcott aa09c442a2 add tox test environment for sqlite, and include elasticsearch 2014-04-24 15:34:59 +01:00
Matt Westcott ead1c19dc0 Add tox.ini for multi-version testing 2014-04-24 15:19:43 +01:00