Skip to content

Commit 86fd526

Browse files
committed
Merge branch 'release/8.2.0'
2 parents 65cea22 + 773b226 commit 86fd526

27 files changed

+1046
-376
lines changed

.github/workflows/main.yml

Lines changed: 26 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,25 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
11-
wagtail-version:
12-
- 4.1
13-
- 5.1
14-
- 5.2
10+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
11+
wagtail-version: ["5.2", "6.2", "6.3"]
12+
django-version: ["4.2", "5.0", "5.1"]
13+
exclude:
14+
- python-version: "3.13"
15+
django-version: "4.2"
16+
- python-version: "3.13"
17+
django-version: "5.0"
18+
- python-version: "3.9"
19+
django-version: "5.0"
20+
- python-version: "3.9"
21+
django-version: "5.1"
22+
- wagtail-version: "5.2"
23+
django-version: "5.1"
24+
- wagtail-version: "6.2"
25+
django-version: "5.1"
1526
services:
1627
postgres:
17-
image: postgis/postgis:12-2.5
28+
image: postgis/postgis:13-3.4
1829
env:
1930
POSTGRES_PASSWORD: postgres
2031
POSTGRES_USER: postgres
@@ -27,9 +38,9 @@ jobs:
2738
--health-timeout 5s
2839
--health-retries 5
2940
steps:
30-
- uses: actions/checkout@v3
41+
- uses: actions/checkout@v4
3142
- name: Set up Python ${{ matrix.python-version }}
32-
uses: actions/setup-python@v4
43+
uses: actions/setup-python@v5
3344
with:
3445
python-version: ${{ matrix.python-version }}
3546
- name: Install dependencies
@@ -57,7 +68,7 @@ jobs:
5768
runs-on: ubuntu-latest
5869
needs: test
5970
steps:
60-
- uses: actions/checkout@v3
71+
- uses: actions/checkout@v4
6172
- uses: psf/black@stable
6273
with:
6374
options: "--check --verbose"
@@ -68,10 +79,10 @@ jobs:
6879
runs-on: ubuntu-latest
6980
needs: test
7081
steps:
71-
- uses: actions/checkout@v3
72-
- uses: actions/setup-python@v4
82+
- uses: actions/checkout@v4
83+
- uses: actions/setup-python@v5
7384
with:
74-
python-version: 3.8
85+
python-version: 3.9
7586
- name: Install dependencies
7687
run: |
7788
python -m pip install --upgrade pip
@@ -82,10 +93,10 @@ jobs:
8293
runs-on: ubuntu-latest
8394
needs: [test, lint-black, lint-isort]
8495
steps:
85-
- uses: actions/checkout@v3
86-
- uses: actions/setup-python@v4
96+
- uses: actions/checkout@v4
97+
- uses: actions/setup-python@v5
8798
with:
88-
python-version: 3.8
99+
python-version: 3.9
89100
- name: Install dependencies
90101
run: |
91102
python -m pip install --upgrade pip

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,33 @@
22

33
## [Unreleased]
44
### Added
5+
### Fixed
56
### Changed
7+
### Removed
8+
9+
## [8.2.0] - 2025.02.01
10+
### Added
11+
- Add support for Wagtail 6.0/6.1 (@katdom13)
12+
- Add support for Wagtail 6.2 (@engineervix)
13+
- Add error handling to geocoding fields (@marteinn)
14+
615
### Fixed
16+
- Fix rendering of MapsField when Point is a NoneType (@nickmoreton)
17+
- Update CI testing matrix to test against python 3.9 to 3.13 (@nickmoreton)
18+
- Update CI testing matrix to test against wagtail 5.2 to 6.3 (@nickmoreton)
19+
- Update CI testing matrix to test against Django 4.2 to 5.1 (@nickmoreton)
20+
- Update classifiers to include Django 5.1 and Python 3.13 (@nickmoreton)
21+
- Update leaflet to 1.9.4 (@marteinn)
22+
- Upgrade mapbox geocoding API to v6 (@marteinn)
23+
- App test page descriptions to improve testing (@marteinn)
24+
25+
### Changed
26+
- Implement stimulus approach to GoogleMapsField, GeocoderField, and LeafletField (@katdom13)
27+
728
### Removed
29+
- Drop support for Django 4.1 (@katdom13)
30+
- Drop support for Wagtail < 5.2 (@katdom13)
31+
- Drop testing around python 3.8 (@nickmoreton)
832

933
## [8.1.1] - 2023.12.29
1034
### Fixed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
FROM python:3.12-slim
2-
MAINTAINER Frojd
1+
FROM python:3.13-slim
2+
LABEL maintainer="Frojd"
33
LABEL version="v0.1.0"
44

55
ENV PYTHONUNBUFFERED=1 \
@@ -18,7 +18,7 @@ RUN apt-get update \
1818

1919
RUN pip install --upgrade pip \
2020
&& pip install -e .[test] --no-cache-dir \
21-
&& pip install psycopg2-binary==2.9.3 \
21+
&& pip install psycopg2-binary==2.9.10 \
2222
&& pip install ipython \
2323
&& pip install pywatchman \
2424
&& pip install python-dotenv

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2015-2024 Fröjd Interactive
3+
Copyright (c) 2015-2025 Fröjd Interactive
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

docker-compose.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Local/Dev
2-
version: '3'
32
services:
43
web:
54
image: frojd/geo-widget-web
@@ -20,7 +19,7 @@ services:
2019
- DATABASE_PORT=5432
2120
env_file: web.env
2221
db:
23-
image: postgis/postgis:12-2.5
22+
image: postgis/postgis:13-3.4
2423
restart: always
2524
environment:
2625
- POSTGRES_USER=postgres

docs/getting-started-with-google-maps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
### Requirements
44

55
- Python 3.8+
6-
- Wagtail 4.1+ and Django 3.2+
6+
- Wagtail 5.2+ and Django 4.2+
77
- A Google account
88

99

docs/getting-started-with-leaflet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
### Requirements
44

55
- Python 3.8+
6-
- Wagtail 4.1+ and Django 3.2+
6+
- Wagtail 5.2+ and Django 4.2+
77
- Access to a tile provider for Leaflet, this library includes built in support for Open Street Map
88

99

setup.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,29 +40,28 @@
4040
"Development Status :: 5 - Production/Stable",
4141
"Environment :: Web Environment",
4242
"Framework :: Django",
43-
"Framework :: Django :: 3.2",
44-
"Framework :: Django :: 4.0",
45-
"Framework :: Django :: 4.1",
43+
"Framework :: Django :: 4.2",
4644
"Framework :: Django :: 5.0",
45+
"Framework :: Django :: 5.1",
4746
"Framework :: Wagtail",
48-
"Framework :: Wagtail :: 4",
4947
"Framework :: Wagtail :: 5",
48+
"Framework :: Wagtail :: 6",
5049
"Intended Audience :: Developers",
5150
"License :: OSI Approved :: MIT License",
5251
"Natural Language :: English",
5352
"Operating System :: OS Independent",
5453
"Programming Language :: Python",
5554
"Programming Language :: Python :: 3",
56-
"Programming Language :: Python :: 3.8",
5755
"Programming Language :: Python :: 3.9",
5856
"Programming Language :: Python :: 3.10",
5957
"Programming Language :: Python :: 3.11",
6058
"Programming Language :: Python :: 3.12",
59+
"Programming Language :: Python :: 3.13",
6160
"Topic :: Utilities",
6261
],
6362
extras_require={"test": test_extras},
6463
install_requires=[
65-
"Wagtail>=4.1",
64+
"Wagtail>=5.2",
6665
],
6766
project_urls={
6867
"Source": "https://github.com/Frojd/wagtail-geo-widget/",

tests/examplesite/settings/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"wagtail.documents",
3636
"wagtail.images",
3737
"wagtail.search",
38+
"wagtail.contrib.search_promotions",
3839
"wagtail.admin",
3940
"wagtail",
4041
]

tests/geopage/migrations/0001_initial.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@
44
import django.db.models.deletion
55
import modelcluster.fields
66
from django.db import migrations, models
7+
from wagtail import VERSION as WAGTAIL_VERSION
78
import wagtail.blocks as wagtail_blocks
89
import wagtail.fields as wagtail_fields
910

1011
import wagtailgeowidget.blocks
1112

1213

1314
class Migration(migrations.Migration):
14-
1515
initial = True
1616

1717
dependencies = [
1818
("wagtailcore", "0066_collection_management_permissions"),
1919
]
2020

21-
streamfield_params = {"use_json_field": True}
21+
streamfield_params = {"use_json_field": True} if WAGTAIL_VERSION < (6, 0) else {}
2222

2323
operations = [
2424
migrations.CreateModel(

0 commit comments

Comments
 (0)