Skip to content

Commit 3b18e6b

Browse files
authored
Prep v012 (#73)
* Use frozen constraints in tox forces the exact Django/Wagtail versions * Bump ruff version * Tidy up tox config * Update changelog and bump version to 0.12 * Tweak migration dependency
1 parent eb0795c commit 3b18e6b

File tree

7 files changed

+19
-6
lines changed

7 files changed

+19
-6
lines changed

.github/workflows/ruff.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v4
1717

18-
- run: python -Im pip install --user ruff==0.5.0
18+
# keep in sync with .pre-commit-config.yaml
19+
- run: python -Im pip install --user ruff==0.5.7
1920

2021
- name: Run ruff
2122
run: ruff check --output-format=github wagtail_footnotes

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
run: python -Im flit build --format wheel
5959

6060
- name: 🧪 Run tox targets for Python ${{ matrix.python }}
61-
run: tox --installpkg ./dist/*.whl
61+
run: tox -q --installpkg ./dist/*.whl
6262

6363
- name: ⬆️ Upload coverage data
6464
uses: actions/upload-artifact@v4

.pre-commit-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ repos:
1818
- id: end-of-file-fixer
1919
- id: trailing-whitespace
2020
- repo: https://github.com/astral-sh/ruff-pre-commit
21-
rev: 'v0.5.0'
21+
# Keep in sync with .github/workflows/ruff.yml
22+
rev: 'v0.5.7'
2223
hooks:
2324
- id: ruff
2425
args: [--fix, --exit-non-zero-on-fix]

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
## Unreleased
44

5+
## 0.12.0
6+
7+
- Added support for Wagtail 6.2 (https://github.com/torchbox/wagtail-footnotes/pull/72) @willbarton
8+
Note: this adds a backwards-compatible locale verbose_name migration
9+
- Added ability to customize the footnote reference rendering (https://github.com/torchbox/wagtail-footnotes/pull/70) @willbarton
10+
To change the default template (`wagtail_footnotes/includes/footnote_reference.html`), add the `WAGTAIL_FOOTNOTES_REFERENCE_TEMPLATE` setting to your template
11+
512
## 0.11.0
613

714
- Improve README @benjaoming

tox.ini

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,17 @@ python =
1717
[testenv]
1818
package = wheel
1919
wheel_build_env = .pkg
20+
use_frozen_constraints = true
21+
constrain_package_deps = true
2022

2123
pass_env =
2224
FORCE_COLOR
2325
NO_COLOR
2426

25-
deps =
27+
set_env =
28+
python3.12: COVERAGE_CORE=sysmon
2629

30+
deps =
2731
django4.2: Django>=4.2,<4.3
2832
django5.0: Django>=5.0,<5.1
2933

wagtail_footnotes/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
VERSION = (0, 11, 0)
1+
VERSION = (0, 12, 0)
22

33
__version__ = ".".join(map(str, VERSION))

wagtail_footnotes/migrations/0006_alter_footnote_locale.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class Migration(migrations.Migration):
99
dependencies = [
10-
("wagtailcore", "0094_alter_page_locale"),
10+
("wagtailcore", "0078_referenceindex"),
1111
(
1212
"wagtail_footnotes",
1313
"0005_alter_footnote_locale_alter_footnote_translation_key",

0 commit comments

Comments
 (0)