Wykres commitów

277 Commity (0e1de4ccfa9747df6cfbde28d9db812bc135c67e)

Autor SHA1 Wiadomość Data
Matt Westcott 88150bf8d3 Increase Pillow dependency range to include 9.x (#7831)
Fixes #7817
2022-01-14 11:25:54 +00:00
Matt Westcott cf0ee13b49 Remove Python 3.6 support 2021-12-09 16:36:29 +00:00
Tomasz Knapik 2c169a8d38 Add Azure CDN and Front Door backends 2021-12-03 08:05:12 +10:00
Serafeim Papastefanos 204831f5c0 Update setup.py to use django-filter latest version
The django-filter package has changed its versioning from a semver to a year based one. The latest version (21.1) is the same as the old one that wagtail supported (2.4): https://github.com/carltongibson/django-filter/blob/main/CHANGES.rst 

So we could just bumb the requirement to `<=22` (I think it's fine to use that because the readme claims that breaking changes will be introduced to version+2 so breaking versions for v.21 will be introduced to v.23)
2021-11-10 12:03:05 +00:00
Matt Westcott 4cc93bac68 Add script for finding translated strings with broken placeholders 2021-10-15 23:33:43 +10:00
Matt Westcott 66e5e21b59 Upgrade django-modelcluster to 5.2 2021-10-13 18:50:15 +01: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
Martey Dodoo d2eb7fd520 Allow use of xlsxwriter 2.0 and 3.0.
Update xlsxwriter constraint to allow usage of xlsxwriter 2.0 and 3.0.
The latter version includes significant improvements to xlsxwriter's
performance.
2021-08-19 14:51:18 +01:00
Scott Cranfill 9f3e6585af
Docs: Update sphinx-wagtail-theme to 5.0.4 (#7296) 2021-06-30 11:18:07 +02:00
Matt Westcott 8422150485 Require python-dateutil>=2.7 (otherwise freezegun fails with module 'dateutil.tz' has no attribute 'UTC') 2021-06-14 16:17:04 +01:00
Matt Westcott 85c97fe87f Drop support for Django 2.2 2021-04-30 10:33:41 +01:00
Matt Westcott a006caac94 Version bump to telepath 0.1.1 for gettext_lazy fix
Fixes #7059 and #7074
2021-04-22 16:18:49 +01:00
Coen van der Kamp ed4ed7a338
Add Sphinx Wagtail Theme (#6930)
Add Sphinx Wagtail Theme
2021-04-20 11:24:17 +02:00
Matt Westcott 8f5a2a8fe9 Formalise support for Django 3.2
Fixes #6981
2021-04-19 12:03:38 +01:00
Dale Evans 197e34be56 unpin beautifulsoup, allow <4.10 instead of <4.9 2021-03-26 14:22:01 +00:00
Matt Westcott f2ddbe74fd install telepath from pypi 2021-03-17 23:32:57 +00:00
Matt Westcott ba9487b753 Move telepath.py into an external package 2021-03-17 23:32:56 +00:00
Matt Westcott de88832899 Unpin django-treebeard - allow all up to 5.0
Fixes #6820. Migration issue has been fixed in 4.5.1, so just exclude 4.5
2021-03-04 13:55:50 +00:00
Jonny Scholes 268b2991ed Fix Jinj2 to include_block not including local variables 2021-02-26 09:23:22 +00:00
Matt Westcott 5829d46383 Pin treebeard to <4.5
Addresses #6820. Treebeard 4.5 introduces a model change that will generate a phantom _auto migration the next time developers run makemigrations - this will cause migration dependency issues when it's absent on other environments, or on subsequent Wagtail upgrades. We need to coordinate the upgrade to Treebeard 4.5 with a corresponding migration shipped with Wagtail.
2021-02-18 09:10:36 +00:00
Thibaud Colas 0dbd69f491
Configure Sphinx for Markdown support (#6711) 2021-01-26 22:09:52 +00:00
Matt Westcott 6e1e36256a Remove elasticsearch 2 support 2020-11-05 12:04:12 +00:00
Matt Westcott 5bcfcdd315 Formalise support for Python 3.9 2020-11-02 17:29:58 +00:00
Matt Westcott 4c66dc6197 Add back unidecode as a testing-only dependency 2020-10-23 18:57:32 +01:00
Matt Westcott 0e41104670 Rotate deprecation warnings 2020-10-23 18:33:06 +01:00
Matt Westcott 60af9ccef3 Extend Pillow dependency range to include 8.x 2020-10-21 14:27:48 +01:00
Matt Westcott 9947b955da Lint config fixes (#6473)
Ref #6463, #6428

* pin isort to 5.6.4
* update isort version mentioned in python_guidelines.rst
* make lint commands consistent between make lint and circleci
* fix isort errors on files outside of /wagtail
* speed up isort by ignoring additional directories and filetypes
2020-10-19 21:33:10 +01:00
Dan Braghis 5c05fc7d8e Bump isort requirement for testing and update configuration 2020-10-16 18:56:39 +01:00
Matt Westcott 906380486d isort new files added in #6428 2020-10-13 14:19:07 +01:00
Karl Hobley f2dfff8061 Flake8 all other Python files 2020-10-05 14:27:50 +01:00
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
Matt Westcott cc2bfbc2af Update author details in setup.py 2018-05-14 14:38:27 +01:00
David e43ea79747 Add a per-user timezone setting 2018-04-20 12:06:52 +01:00
Matt Westcott 8abceeb166 Allow html5lib 1.x. Fixes #4454 2018-04-12 11:56:50 +01:00
Thibaud Colas 86943a3a91 Change draftjs-exporter version range to allow all 2.x releases 2018-03-29 18:07:32 +02:00
Matt Westcott 46286e2c84
Upgrade Pillow to >=4.0 2018-03-05 16:39:34 +00:00
Todd Dembrey 073dcdddfe Ensure that rest framework is compatible with django 2.0
3.7.4 is the first release with django 2.0 compatibility
http://www.django-rest-framework.org/topics/release-notes/#374
2018-03-05 16:22:07 +00:00
Loic Teixeira 2fe31ddd84 Update to latest draftjs_exporter
See draftjs_exporter v2.0.0 release notes: https://github.com/springload/draftjs_exporter/releases/tag/v2.0.0
2018-01-17 22:01:40 +02:00
Matt Westcott 9fe86dde5d Implement conversion from contentstate to database rich text format 2018-01-17 21:52:48 +02:00
Karl Hobley 1e332b4b67 Implement 'bgcolor' image operation.
Also fixes #3713.

Remove alpha channel if converting transparent image to JPEG
2018-01-03 11:26:14 +01:00
Matt Westcott cca7653839 Specify django-taggit 0.22.2 for Django 2.0 support 2018-01-02 14:47:07 +00:00
Matt Westcott c96b2848bc Use django-modelcluster 4.0 2017-12-13 16:07:50 +00:00
Matt Westcott 8aa8ddcde9
add upper bounds on dependencies that don't already have them 2017-12-06 11:09:09 +00:00
Matt Westcott 3191849b6b Update setup.py and docs to mention Django 2.0 support 2017-12-04 12:58:29 +00:00
Matt Westcott a789ec7b7f Un-pin Django Rest Framework <3.7. Reverses #3912 2017-10-11 20:57:16 +01:00
Matt Westcott 5a0c36cdae Remove Django 1.8/1.10 from CI and readme 2017-10-11 17:04:06 +01:00
Karl Hobley 4a1e27dbd4 Remove Python 2 from CI and docs 2017-10-11 16:40:10 +01:00
Matt Westcott e6d9428949 Pin django-rest-framework to <3.7 to preserve Django 1.8 support 2017-10-06 15:30:36 +01:00
Karl Hobley 921cee4707 Update to Willow 1.0 (#3828)
For changes, see: http://willow.readthedocs.io/en/latest/changelog.html#id1
2017-09-11 13:27:42 +01:00
Matt Westcott b976db3afc Pin isort to 4.2.5 - fixes #3623 2017-06-02 12:23:49 +01:00
Martin Hill 9f5ce0755a Fixed RuntimeError: dictionary changed size during iteration, raised while purging stale preview data from session
Added TestPreview.test_preview_on_edit_expiry to exercise PreviewOnEdit.remove_old_preview_data
Added freezegun package in testing_extras
2017-05-10 11:28:45 +02:00