Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ env:
PIP_DISABLE_PIP_VERSION_CHECK: "1"
PIP_NO_PYTHON_VERSION_WARNING: "1"
# Keep in sync with .pre-commit-config.yaml/default_language_version/python.
PYTHON_LATEST: "3.13" # because harden runner fails on the 3.13 download
PYTHON_LATEST: "3.14" # because harden runner fails on the 3.14 download

jobs:
tests:
Expand All @@ -28,7 +28,7 @@ jobs:

strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]

steps:
- name: 🔒 Harden Runner
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ci:
autoupdate_schedule: 'quarterly'

default_language_version:
python: python3.13
python: python3.14

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## [Unreleased]

- Support for Wagtail 7.2
- Support for Python 3.14

## [0.17.2] - 2025-10-18

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ but for audio and video files.

wagtailmedia requires the following:

- Python (3.9, 3.10, 3.11, 3.12, 3.13)
- Python (3.10, 3.11, 3.12, 3.13, 3.14)
- Django (4.2, 5.1, 5.2)
- Wagtail (6.3, 6.4, 7.0)
- Wagtail (6.3, 7.0, 7.2)

## Install

Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Framework :: Wagtail",
"Framework :: Wagtail :: 6",
"Framework :: Wagtail :: 7",
]

dynamic = ["version"]
requires-python = ">=3.9"
requires-python = ">=3.10"
dependencies = [
"Wagtail>=6.3",
"Django>=4.2",
Expand Down
6 changes: 2 additions & 4 deletions tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
import shutil
import tempfile

from typing import Optional

from django.core.files.base import ContentFile
from django.test import TestCase

Expand Down Expand Up @@ -32,8 +30,8 @@ def run(self, result=None):
def create_media(
media_type: str,
title: str,
duration: Optional[int] = 100,
thumbnail: Optional[str] = False,
duration: int | None = 100,
thumbnail: str | None = False,
Comment on lines +33 to +34
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed by ruff

) -> Media:
filename = re.sub(r"[/:\"\'] ", "_", title).lower()
extension = "mp3" if media_type == MediaType.AUDIO else "mp4"
Expand Down
19 changes: 10 additions & 9 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
min_version = 4.22

env_list =
python{3.9,3.10,3.11}-dj42-wagtail{63,70,71}
python{3.12}-dj51-wagtail{63,70,71}
python{3.13}-dj52-wagtail{70,71}
python{3.10,3.12}-dj42-wagtail{63,70,72}
python{3.13}-dj{51,52}-wagtail{63,70,72}
python{3.14}-dj52-wagtail{70,72}

[gh-actions]
python =
3.9: py3.9
3.10: py3.10
3.11: py3.11
3.12: py3.12
3.13: py3.13
3.14: py3.14

[testenv]
package = wheel
Expand All @@ -31,6 +31,7 @@ set_env =

python3.12: COVERAGE_CORE=sysmon
python3.13: COVERAGE_CORE=sysmon
python3.14: COVERAGE_CORE=sysmon

extras = testing

Expand All @@ -40,15 +41,15 @@ deps =
dj52: Django>=5.2,<5.3
wagtail63: wagtail>=6.3,<6.4
wagtail70: wagtail>=7.0,<7.1
wagtail71: wagtail>=7.1,<7.2
wagtail72: wagtail>=7.2,<7.3

commands_pre =
python -I {toxinidir}/tests/manage.py migrate
commands =
python -Im coverage run {toxinidir}/tests/manage.py test --deprecation all {posargs: -v 2}

[testenv:coverage-report]
base_python = python3.13
base_python = python3.14
package = skip
deps =
coverage>=7.0,<8.0
Expand All @@ -58,17 +59,17 @@ commands =

[testenv:wagtailmain]
description = Test with latest Wagtail main branch
base_python = python3.13
base_python = python3.14
deps =
wagtailmain: git+https://github.com/wagtail/wagtail.git@main#egg=Wagtail

[testenv:interactive]
package = editable
description = An interactive environment for local testing purposes
base_python = python3.13
base_python = python3.14

deps =
wagtail>=6.3,<6.4
wagtail>=7.0,<7.1

commands_pre =
python {toxinidir}/tests/manage.py makemigrations
Expand Down