Skip to content

Commit

Permalink
Release 2.4.0 (#68)
Browse files Browse the repository at this point in the history
Co-authored-by: David Buxton <[email protected]>
  • Loading branch information
jlchilders11 and davidwtbuxton authored Feb 14, 2024
1 parent 4a7f7e1 commit 609511e
Show file tree
Hide file tree
Showing 14 changed files with 28 additions and 4 deletions.
3 changes: 3 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ stages:
py3.11_wag5:
PYTHON_VERSION: '3.11'
WAGTAIL: '5.*'
py3.12_wag6:
PYTHON_VERSION: "3.12"
WAGTAIL: '6.*'

steps:
- task: UsePythonVersion@0
Expand Down
2 changes: 1 addition & 1 deletion ci/compare-codecov.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ foreach ($build in $mainBuildJson.value) {

# Retrieve code coverage for this build ID.
$mainCoverageJson = (
Invoke-WebRequest "$ApiBase/_apis/test/codecoverage?buildId=$mainLatestId&api-version=5.1-preview.1"
Invoke-WebRequest "$ApiBase/_apis/test/codecoverage?buildId=$mainLatestId&flags=7&api-version=7.1-preview.1"
).Content | ConvertFrom-Json
foreach ($cov in $mainCoverageJson.coverageData.coverageStats) {
if ($cov.label -eq "Lines") {
Expand Down
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import sys
sys.path.insert(0, os.path.abspath('.'))
"""

import datetime

from wagtailcache import __shortversion__
Expand Down
4 changes: 4 additions & 0 deletions docs/releases.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
Release Notes
=============

2.4.0
=====

* Support Wagtail 6 and Django 5.1

2.3.0
=====
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
license="BSD license",
include_package_data=True,
packages=find_packages(),
install_requires=["wagtail>=3.0,<6"],
install_requires=["wagtail>=3.0,<7"],
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
Expand Down
10 changes: 9 additions & 1 deletion testproject/testproject/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os

Expand Down Expand Up @@ -99,7 +100,14 @@
"django.contrib.staticfiles.finders.AppDirectoriesFinder",
]

STATICFILES_STORAGE = "django.contrib.staticfiles.storage.StaticFilesStorage"
STORAGES = {
"default": {
"BACKEND": "django.contrib.staticfiles.storage.StaticFilesStorage"
},
"staticfiles": {
"BACKEND": "django.contrib.staticfiles.storage.StaticFilesStorage"
},
}

STATIC_ROOT = os.path.join(BASE_DIR, "static")
STATIC_URL = "/static/"
Expand Down
1 change: 1 addition & 0 deletions testproject/testproject/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""

import os

from django.core.wsgi import get_wsgi_application
Expand Down
2 changes: 1 addition & 1 deletion wagtailcache/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
release = ["2", "3", "0"]
release = ["2", "4", "0"]
__version__ = "{0}.{1}.{2}".format(release[0], release[1], release[2])
__shortversion__ = "{0}.{1}".format(release[0], release[1])
1 change: 1 addition & 0 deletions wagtailcache/cache.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Functionality to set, serve from, and clear the cache.
"""

import re
from enum import Enum
from functools import wraps
Expand Down
1 change: 1 addition & 0 deletions wagtailcache/management/commands/clear_wagtail_cache.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""CLI tool to clear wagtailcache."""

from django.core.management.base import BaseCommand

from wagtailcache.cache import clear_cache
Expand Down
2 changes: 2 additions & 0 deletions wagtailcache/settings.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Default django settings for wagtail-cache.
"""

from typing import Text

from django.conf import settings
Expand All @@ -14,6 +15,7 @@ class _DefaultSettings:
WAGTAIL_CACHE_IGNORE_QS = [
r"^_bta_.*$", # Bronto
r"^_ga$", # Google Analytics
r"^_gl$", # Google Analytics
r"^affiliate$", # Instagram affiliates
r"^ck_subscriber_id$", # Instagram affiliates
r"^dm_i$", # Dotdigital
Expand Down
1 change: 1 addition & 0 deletions wagtailcache/urls.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
URLs for the wagtail admin dashboard.
"""

from django.urls import path

from wagtailcache.views import clear
Expand Down
1 change: 1 addition & 0 deletions wagtailcache/views.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Views for the wagtail admin dashboard.
"""

from typing import Dict
from typing import List

Expand Down
1 change: 1 addition & 0 deletions wagtailcache/wagtail_hooks.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Registers wagtail-cache in the wagtail admin dashboard.
"""

from django.urls import include
from django.urls import path
from django.urls import reverse
Expand Down

0 comments on commit 609511e

Please sign in to comment.