Skip to content

Commit

Permalink
Prep v012 (#73)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
zerolab committed Aug 13, 2024
1 parent eb0795c commit 3b18e6b
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ jobs:
steps:
- uses: actions/checkout@v4

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

- name: Run ruff
run: ruff check --output-format=github wagtail_footnotes
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
run: python -Im flit build --format wheel

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

- name: ⬆️ Upload coverage data
uses: actions/upload-artifact@v4
Expand Down
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.5.0'
# Keep in sync with .github/workflows/ruff.yml
rev: 'v0.5.7'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

## Unreleased

## 0.12.0

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

## 0.11.0

- Improve README @benjaoming
Expand Down
6 changes: 5 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,17 @@ python =
[testenv]
package = wheel
wheel_build_env = .pkg
use_frozen_constraints = true
constrain_package_deps = true

pass_env =
FORCE_COLOR
NO_COLOR

deps =
set_env =
python3.12: COVERAGE_CORE=sysmon

deps =
django4.2: Django>=4.2,<4.3
django5.0: Django>=5.0,<5.1

Expand Down
2 changes: 1 addition & 1 deletion wagtail_footnotes/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
VERSION = (0, 11, 0)
VERSION = (0, 12, 0)

__version__ = ".".join(map(str, VERSION))
2 changes: 1 addition & 1 deletion wagtail_footnotes/migrations/0006_alter_footnote_locale.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class Migration(migrations.Migration):
dependencies = [
("wagtailcore", "0094_alter_page_locale"),
("wagtailcore", "0078_referenceindex"),
(
"wagtail_footnotes",
"0005_alter_footnote_locale_alter_footnote_translation_key",
Expand Down

0 comments on commit 3b18e6b

Please sign in to comment.