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

Adding more versions to the test matrix, removing support for wagtail<3 #3

Merged
merged 1 commit into from
Oct 4, 2023
Merged
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
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