Wykres commitów

197 Commity (1e22702bd6cde99e9780af4f0421b58e8e14b8cd)

Autor SHA1 Wiadomość Data
Karl Hobley 00c5445b28 Update pyenchant 2020-10-03 14:43:03 +01:00
Karl Hobley 9195131738 Lint docs with doc8 2020-10-03 14:43:03 +01:00
Karl Hobley 519c0c332d
Simplify Page.copy() (#6277)
* Use Django modelcluster's copy_all_child_relations method

* page.specific.__class__ => page.specific_class

* Use child_object_map as returned by modelcluster for revision rewriting

* Use modelcluster to commit child relations

* Use a callback instead of a method for _save_copy_instance

* Make CopyMixin work on non-MTI models

* Make gathering exclude_fields the job of the callee

._copy() no longer depends on any custom attributes in the base class!

* Converted CopyMixin into some utility methods (and renamed some stuff)

* Don't commit the new page in _copy

* Refactor _copy_m2m_relations to be more standalone

* Merge _make_copy into _copy

Not really useful outside _copy

* Give unused variable a name

* Version-bump django-modelcluster to 5.1

* Address review feedback

Co-authored-by: Matt Westcott <matt@west.co.tt>
2020-09-14 20:50:44 +01:00
Vince Salvino 7ec4b516fa Specify required python versions (#6366) 2020-09-02 17:52:00 +01:00
Matt Westcott d06c52d495 Specify django-modelcluster >=5.0.2 to avoid django-taggit dependency issues 2020-08-25 13:52:04 +01:00
Robbie Mackay 437e3b9258 Replace unidecode with anyascii in wagtail.core.utils.string_to_ascii
- Add anyascii to replace unidecode
- Update wagtail.core.utils.string_to_ascii to use anyascii.
- Anyascii has a similar but not exactly the same encoding - see updates to tests.

Refs https://github.com/wagtail/wagtail/issues/3311
2020-08-07 17:48:58 +01:00
Matt Westcott f804eba423 Formalise Django 3.1 support
Conflicts:
	wagtail/project_template/requirements.txt
2020-08-06 11:26:26 +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
Mike Monteith e9fa7ea915 Remove Django 2.1 from install_requires
Since Wagtail 2.9, Django >=2.2 is required. https://docs.wagtail.io/en/v2.9/releases/upgrading.html#compatible-django-python-versions
2020-06-30 11:08:58 +01:00
mozgsml 4abeb8232d
WebP images quality/lossless compression parameters (#6040)
* Add WebP-image quality and lossless

* Add WebP-image quality and lossless to Docs

* add WebP quality tests

* Split image quality filter => jpegquality, webpquality

* WebP lossless to inage format options

* Update WebP quality/lossless docs

* Updated Willow version

* WebP quality/lossless minor fix
2020-06-09 09:29:48 +01:00
Martin Sandström 301d1bc7f5 Add ability to import redirects from a file wagtail.contrib.redirects
* Add support for importing redirects via tsv, csv, xls and xlsx files
* Add import_redirects management command to redirects documentation
2020-06-07 11:20:39 +10:00
Matt Westcott a7ddb056b8 Fix test suite migrations to match django-taggit 1.3.0 2020-05-26 11:04:07 +01:00
Matt Westcott ff47c58d65 Drop support for Python 3.5 2020-04-24 14:58:55 +01:00
Karl Hobley a11de58a63 Add dependency on django-filter 2020-04-22 14:54:30 +01:00
jacobtoppm 00650e7311 Reduce openpyxl version for Python 3.5 compatibility 2020-03-13 17:33:21 +00:00
jacobtoppm 41bf6010df Add openpyxl for reading xlsx files in tests (xlsxwrites cannot, but is more performant and nicer to use, so is preferred outside testing rather than using openpyxl for both). Add tests for xlsx exports. 2020-03-13 17:33:19 +00:00
jacobtoppm 7026ab3408 Add xslxwriter dependency 2020-03-11 09:07:52 +00:00
Po-Chuan Hsieh f52d3d89d1
Relax pillow version restriction (#5829)
It allows to build with Pillow 7.x.
2020-02-25 23:10:17 +00:00
Matt Westcott 4df455ea9f
Remove support for Django 2.1 (#5840) 2020-02-18 13:55:53 +00:00
Matt Westcott d192bd1d44 Version bump beautifulsoup to 4.8.x (#5817) 2020-02-11 11:02:08 +00:00
Matt Westcott 110101d96e Make Django 3.0 support official 2019-12-17 14:24:31 +00:00
Martey Dodoo 229103ff2e Update links in documentation. (#5689)
Use HTTPS links instead of non-secure HTTP links wherever possible in
documentation.
2019-11-08 09:15:01 +00:00
Matt Westcott 3e98563340
Drop support for Django 2.0 (#5684) 2019-11-06 17:05:04 +00:00
Matt Westcott 6ce9f3a717 Unbundle the l18n library
This was previously bundled in #4721 to avoid installation errors on non-Unicode locales. As of v2018.5, this has now been fixed upstream: https://bitbucket.org/tkhyn/l18n/issues/4/setuppy-raises-unicodedecodeerror-trying

isort fix
2019-10-30 08:03:41 +10:00
Matt Westcott 69e96a9227 Formalise Python 3.8 support 2019-10-22 16:23:44 +01:00
Matt Westcott 3024e02481 Revert "Formalise Python 3.8 support"
This reverts commit ddbbaea288.
2019-10-16 14:27:59 +01:00
Karl Hobley b4ecead6d9 [5225] Take number of frames into account when limiting image size 2019-10-16 11:36:07 +01:00
Matt Westcott ddbbaea288 Formalise Python 3.8 support 2019-10-15 20:08:04 +01:00
Matt Westcott 34c1b4ccbe Upgrade django-taggit to 1.x
django-taggit 1.x drops Python 2.x support and thus the dependency on django.utils.six; this is a prerequisite for supporting Django 3.0.
The signature of TaggableManager.value_from_object has changed to return a list of Tags (previously it was a QuerySet of TaggedItems) and so search indexing and comparison need to be updated accordingly. There is a corresponding fix to ClusterTaggableManager in django-modelcluster 5.0.
2019-08-18 16:33:02 +10:00
Matt Westcott 14dcb54a17 Fix broken pipenv/docutils dependency on CircleCI 2019-07-23 17:26:12 +01:00
Po-Chuan Hsieh 02f3ae5696 Relax pillow version restriction
It allows to build with Pillow 6.x.
2019-05-01 12:46:28 +01:00
Thibaud Colas a51631c306 Add jinjalint linter for Django templates, allowing errors for now 2019-04-29 13:55:41 +01:00
Matt Westcott a304f0f9f8 Remove support for Python 3.4 2019-04-10 17:39:53 +01:00
Matt Westcott 92a1e7918a Bump django-taggit to 0.24 2019-04-02 21:59:43 +01:00
Matt Westcott a3283dd7fb Formalise support for Django 2.2 2019-04-01 19:59:04 +01:00
Samir Shah 9ae6e9025a Update Django version requirement in setup.py 2019-02-27 14:47:46 +00:00
Thibaud Colas a3dc9ed477 Bump draftjs_exporter version to fix entities export bug
This bumps the `draftjs_exporter` dependency requirement of Wagtail to [v2.1.5](https://github.com/springload/draftjs_exporter/blob/master/CHANGELOG.md#v215), which fixes an export bug when entities (say, links) are adjacent in the content.

See https://github.com/springload/draftjs_exporter/issues/106.
2018-11-29 17:37:48 +00:00
Sergey Fedoseev 60bf798db1 Use unittest.mock instead of external module. (#4893)
* Use unittest.mock instead of external module.

* Avoid assert_called and assert_called_once, for Python <3.6 compatibility
2018-11-27 18:31:32 +00:00
Matt Westcott 33e290b82d Fix linting failures for flake8 3.6 2018-10-25 18:03:29 +01:00
Matt Westcott 4bb8a5f420 Document Python 3.7 support 2018-10-17 18:23:35 +01:00
Matt Westcott 897112a5a2 Update dependencies to include Django 2.1 2018-08-14 14:11:39 +01:00
Matt Westcott b2a8f404e0 Pin Beautifulsoup to 4.6.0 2018-08-13 15:12:59 +01:00
Matt Westcott 6604cdfdae Update documentation to indicate Django 2.1 support 2018-08-09 00:34:38 +01:00
Matt Westcott deb7f7ecc6 Upgrade to Django-2.1-compatible versions of modelcluster and taggit 2018-08-09 00:34:38 +01:00
Matt Westcott fcdb1bd2b7 add indirect dependencies from l18n 2018-08-06 13:11:01 +01:00
Matt Westcott 6793f76890 Bundle the l18n library to prevent installation issues
https://bitbucket.org/tkhyn/l18n/issues/4/setuppy-raises-unicodedecodeerror-trying prevents the l18n library from being installed on certain setups with non-Unicode locales:
https://groups.google.com/d/msg/wagtail/X5d8CL3DxUs/httaLso4DAAJ

As a temporary measure until a fixed version of l18n is released, bundle the library into wagtail.utils.l18n.
2018-08-06 12:39:45 +01:00
Matt Westcott 93e079bc6c Block installation of beautifulsoup4==4.6.1
It contains a critical bug that breaks Wagtail: https://bugs.launchpad.net/beautifulsoup/+bug/1784408
2018-07-30 16:28:30 +01:00
Tom Dyson ee661ab6f8 README rewrite (#4372) 2018-06-28 17:27:55 +01:00
Allen, Timothy 3cd18f3c1f Add trove classfier for Wagtail... to Wagtail. 2018-06-19 14:45:41 +01:00
Craig Loftus 8270a117f5 Update Unidecode version 2018-06-15 16:44:32 +01:00