Skip to content

Commit

Permalink
Merge pull request #3 from overcastsoftware/test-matrix-upgrade-wagtail5
Browse files Browse the repository at this point in the history
Adding more versions to the test matrix, removing support for wagtail<3
  • Loading branch information
saevarom authored Oct 4, 2023
2 parents c7cce15 + f46b3cb commit 51bd520
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 14 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,17 @@ jobs:
matrix:
include:
- python: '3.10'
wagtail: 'wagtail>=4.1'
wagtail: 'wagtail<5.2'
- python: '3.11'
wagtail: 'wagtail<5.2'
- python: '3.10'
wagtail: 'wagtail<5.1'
- python: '3.11'
wagtail: 'wagtail<5.1'
- python: '3.10'
wagtail: 'wagtail<4.3'
- python: '3.11'
wagtail: 'wagtail<4.3'

runs-on: 'ubuntu-latest'

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Use an official Python runtime as a parent image
FROM python:3.8-bullseye
FROM python:3.10-bullseye
LABEL maintainer="[email protected]"

# Set environment varibles
Expand Down
13 changes: 3 additions & 10 deletions wagtailtables/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,10 @@
from django.utils.functional import cached_property

from wagtail.telepath import register
from wagtail import VERSION

# Backwards compatibility
if VERSION[0] < 3:
from wagtail.blocks.struct_block import StructBlockAdapter
from wagtail.blocks import (BooleanBlock, CharBlock, ChoiceBlock,
StructBlock, TextBlock)
else:
from wagtail.blocks.struct_block import StructBlockAdapter
from wagtail.blocks import (BooleanBlock, CharBlock, ChoiceBlock,
StructBlock, TextBlock)
from wagtail.blocks.struct_block import StructBlockAdapter
from wagtail.blocks import (BooleanBlock, CharBlock, ChoiceBlock,
StructBlock, TextBlock)

TOOLBAR = [
{'type': 'i','content': 'format_align_left', 'k': 'text-align', 'v': 'left'},
Expand Down
4 changes: 2 additions & 2 deletions wagtailtables_demo/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Django>=4.0,<4.1
wagtail==5.1.2
Django>=4.0,<4.3
wagtail<5.2
dj-database-url==0.4.1
psycopg2-binary>=2.7,<3.0
debugpy==1.5.1

0 comments on commit 51bd520

Please sign in to comment.