Skip to content

Commit 70655c8

Browse files
authored
Wagtail 7.2 maintenance (#75)
2 parents e369d03 + ef2d142 commit 70655c8

File tree

7 files changed

+46
-31
lines changed

7 files changed

+46
-31
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ jobs:
1010
permissions:
1111
contents: read # to fetch code (actions/checkout)
1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v5
1414
with:
1515
fetch-depth: 0
1616

1717
- uses: actions/setup-python@v5
1818
with:
19-
python-version: '3.13'
19+
python-version: '3.14'
2020
cache: "pip"
2121
cache-dependency-path: "**/pyproject.toml"
2222

.github/workflows/ruff.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v5
1717

1818
# Keep in sync with .pre-commit-config.yaml
19-
- run: python -Im pip install --user ruff==0.11.1
19+
- run: python -Im pip install --user ruff==0.14.4
2020

2121
- name: Run ruff
2222
working-directory: ./src

.github/workflows/test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ jobs:
2929
strategy:
3030
matrix:
3131
python-version: ["3.12", "3.13"]
32-
django: [ "4.2" ]
33-
wagtail: [ "6.3" ]
32+
django: [ "5.2" ]
33+
wagtail: [ "7.0" ]
3434
database: [ "sqlite" ]
3535
steps:
36-
- uses: actions/checkout@v4
36+
- uses: actions/checkout@v5
3737
- name: Set up Python ${{ matrix.python-version }}
3838
uses: actions/setup-python@v5
3939
with:
@@ -57,7 +57,7 @@ jobs:
5757
runs-on: ubuntu-latest
5858
strategy:
5959
matrix:
60-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
60+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
6161
database: ["postgres"]
6262

6363
services:
@@ -72,7 +72,7 @@ jobs:
7272

7373
steps:
7474
- name: Checkout repository
75-
uses: actions/checkout@v4
75+
uses: actions/checkout@v5
7676

7777
- name: Set up Python ${{ matrix.python-version }}
7878
uses: actions/setup-python@v5
@@ -104,7 +104,7 @@ jobs:
104104
- test-postgres
105105

106106
steps:
107-
- uses: actions/checkout@v4
107+
- uses: actions/checkout@v5
108108
- uses: actions/setup-python@v5
109109
with:
110110
# Use latest Python, so it understands all syntax.

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ ci:
22
autofix_prs: false
33

44
default_language_version:
5-
python: python3.13
5+
python: python3.14
66

77
repos:
88
- repo: https://github.com/pre-commit/pre-commit-hooks
9-
rev: v5.0.0
9+
rev: v6.0.0
1010
hooks:
1111
- id: check-added-large-files
1212
- id: check-case-conflict
@@ -20,8 +20,8 @@ repos:
2020
- id: trailing-whitespace
2121
- repo: https://github.com/astral-sh/ruff-pre-commit
2222
# keep in sync with .github/workflows/ruff.yml
23-
rev: 'v0.11.1'
23+
rev: 'v0.14.4'
2424
hooks:
25-
- id: ruff
26-
args: [--fix, --exit-non-zero-on-fix]
25+
- id: ruff-check
26+
args: [ --fix ]
2727
- id: ruff-format

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [Unreleased]
9+
10+
- Maintenance update for Wagtail 7.0, 7.1 & 7.2 compatibility
11+
12+
## [0.12.2] - 2025-03-21
13+
14+
- Current release

pyproject.toml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,33 +23,35 @@ classifiers = [
2323
"Topic :: Internet :: WWW/HTTP :: Site Management",
2424
"Programming Language :: Python",
2525
"Programming Language :: Python :: 3",
26-
"Programming Language :: Python :: 3.9",
2726
"Programming Language :: Python :: 3.10",
2827
"Programming Language :: Python :: 3.11",
2928
"Programming Language :: Python :: 3.12",
3029
"Programming Language :: Python :: 3.13",
30+
"Programming Language :: Python :: 3.14",
3131
"Framework :: Django",
3232
"Framework :: Django :: 4.2",
3333
"Framework :: Django :: 5.1",
34+
"Framework :: Django :: 5.2",
3435
"Framework :: Wagtail",
3536
"Framework :: Wagtail :: 6",
37+
"Framework :: Wagtail :: 7",
3638
]
3739

3840
dynamic = ["version"]
3941
requires-python = ">=3.9"
4042
dependencies = [
4143
"Wagtail>=6.3",
42-
"python-docx>=0.8.10"
44+
"python-docx>=1.2.0"
4345
]
4446

4547
[project.optional-dependencies]
4648
testing = [
4749
# Required for running the tests
48-
"mock>=1.0.0",
50+
"mock>=5.2.0",
4951
# For coverage and PEP8 linting
50-
"coverage>=7.7.0",
51-
"tox==4.11",
52-
"dj-database-url>=2.3.0,<3.0"
52+
"coverage>=7.11.3",
53+
"tox>=4.32.0",
54+
"dj-database-url>=3,<4"
5355
]
5456

5557
[project.urls]
@@ -62,9 +64,6 @@ Changelog = "https://github.com/torchbox/wagtail-content-import/blob/main/docs/r
6264
requires = ["flit_core >=3.11,<4"]
6365
build-backend = "flit_core.buildapi"
6466

65-
[tool.flit.module]
66-
name = "wagtail_content_import"
67-
6867
[tool.flit.sdist]
6968
exclude = [
7069
".*",
@@ -75,8 +74,6 @@ exclude = [
7574
"*.yaml",
7675
"docs/",
7776
"tests/",
78-
"wagtail_content_import/test/",
7977
"CHANGELOG.md",
8078
"ruff.toml",
81-
"testmanage.py",
8279
]

tox.ini

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
[tox]
2-
min_version = 4.11
2+
min_version = 4.30.2
33

44
envlist =
5-
python{3.9,3.10,3.11}-django4.2-wagtail{6.3,6.4}-{sqlite,postgres}
6-
python{3.10,3.11,3.12,3.13}-django5.1-wagtail{6.3,6.4,main}-{sqlite,postgres}
5+
python{3.10,3.11}-django4.2-wagtail{6.3,7.0,7.1,7.2}-{sqlite,postgres}
6+
python{3.12,3.13}-django{5.1,5.2}-wagtail{6.3,7.0}-{sqlite,postgres}
7+
python{3.14}-django{5.2}-wagtail{7.2,main}-{sqlite,postgres}
78

89
[gh-actions]
910
python =
10-
3.9: python3.9
1111
3.10: python3.10
1212
3.11: python3.11
1313
3.12: python3.12
1414
3.13: python3.13
15+
3.14: python3.14
1516

1617
[gh-actions:env]
1718
DATABASE =
@@ -37,9 +38,12 @@ deps =
3738

3839
django4.2: Django>=4.2,<5.0
3940
django5.1: Django>=5.1,<5.2
41+
django5.2: Django>=5.2,<5.3
4042

4143
wagtail6.3: wagtail>=6.3,<6.4
42-
wagtail6.4: wagtail>=6.4,<6.5
44+
wagtail7.0: wagtail>=7.0,<7.1
45+
wagtail7.1: wagtail>=7.1,<7.2
46+
wagtail7.2: wagtail>=7.2,<7.3
4347
wagtailmain: git+https://github.com/wagtail/wagtail.git
4448

4549
postgres: psycopg

0 commit comments

Comments
 (0)