Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wagtail 6.2 testing #27

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
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
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ default_language_version:
python: python3.12
repos:
- repo: https://github.com/python/black
rev: 23.1.0
rev: 24.4.2
hooks:
- id: black
exclude: migrations/
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/pycqa/flake8
# flake8 config is in setup.cfg
rev: 3.8.3
rev: 7.0.0
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-prettier
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## Unreleased

- Add tests for Wagtail 6
- Drop support for Django < 4.2

## 1.1.0 (2024-03-11)

- Add tests for Wagtail 5.1+
Expand Down
8 changes: 4 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ license_files =
[options]
python_requires = >= 3.8
setup_requires =
setuptools >= 40.6
pip >= 10
setuptools >= 70.0.0
pip >= 24.0
include_package_data = true
packages = find:
install_requires =
Django>=3.2
Django>=4.2
wagtail>=5.2
python-unsplash>=1.1.0, <1.2
python-unsplash>=1.2.5
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
long_description = f.read()

testing_extras = [
"coverage>=4.5",
"coverage>=7.5.2",
]

setup(
Expand All @@ -27,13 +27,12 @@
license="MIT",
packages=find_packages(exclude=["tests*"]),
include_package_data=True,
install_requires=["wagtail>=5.2", "python-unsplash>=1.1.0"],
install_requires=["wagtail>=5.2", "python-unsplash>=1.2.5"],
extras_require={"testing": testing_extras},
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Wagtail",
Expand Down
11 changes: 6 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,22 @@ python =

[gh-actions:env]
DJANGO =
3.2: dj32
4.2: dj42
5.0: dj50

WAGTAIL =
5.2: wt52
6.0: wt60
6.1: wt61
6.2: wt62

[tox]
skipsdist = True
usedevelop = True

envlist =
py{38,39,310}-dj32-wt52
py{38,39,310,311}-dj42-wt{52,60}
py{311,312}-dj50-wt{52,60}
py{38,39,310,311}-dj42-wt{52,60,61,62}
py{310,311,312}-dj50-wt{52,60,61,62}

[testenv]
description = Unit tests
Expand All @@ -38,8 +38,9 @@ basepython =
py312: python3.12

deps =
dj32: Django>=3.2,<4.0
dj42: Django>=4.2,<4.3
dj50: Django>=5.0,<5.1
wt52: wagtail>=5.2,<5.3
wt60: wagtail>=6.0,<6.1
wt61: wagtail>=6.1,<6.2
wt62: wagtail>=6.2,<6.3
1 change: 0 additions & 1 deletion wagtailmakeup/tests/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
"django.contrib.auth.middleware.AuthenticationMiddleware",
"django.contrib.messages.middleware.MessageMiddleware",
"django.middleware.clickjacking.XFrameOptionsMiddleware",
"wagtail.core.middleware.SiteMiddleware",
]

ROOT_URLCONF = "wagtailmakeup.tests.urls"
Expand Down
Loading