Skip to content
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: 8 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
timeout-minutes: 60
name: Update docker cache
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Cache docker images
id: custom-cache
uses: actions/cache@v4
Expand Down Expand Up @@ -36,6 +36,7 @@ jobs:
- '3.11'
- '3.12'
- '3.13'
- '3.14'
django-version:
- 'django==4.2'
- 'django==5.0'
Expand All @@ -46,16 +47,20 @@ jobs:
- python-version: '3.13'
django-version: "git+https://github.com/django/django.git@main#egg=Django"
experimental: true
- python-version: '3.14'
django-version: "git+https://github.com/django/django.git@main#egg=Django"
experimental: true

env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true

- name: Cache docker images
id: custom-cache
Expand All @@ -69,7 +74,7 @@ jobs:
run: docker image load -i ./custom-cache/all.tar

- name: Install uv
uses: astral-sh/setup-uv@v5
uses: astral-sh/setup-uv@v7
with:
enable-cache: true

Expand All @@ -92,7 +97,6 @@ jobs:
uv run pytest tests/*.py --ds=tests.settings.sqlite -x
uv run pytest tests/*.py --ds=tests.settings.sqlite_herd -x
uv run pytest tests/*.py --ds=tests.settings.sqlite_json -x
uv run pytest tests/*.py --ds=tests.settings.sqlite_lz4 -x
uv run pytest tests/*.py --ds=tests.settings.sqlite_msgpack -x
uv run pytest tests/*.py --ds=tests.settings.sqlite_sentinel -x
uv run pytest tests/*.py --ds=tests.settings.sqlite_sentinel_opts -x
Expand Down
12 changes: 10 additions & 2 deletions django_valkey/compressors/lz4.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
from lz4.frame import compress
from lz4.frame import decompress
import sys

try:
from lz4.frame import compress
from lz4.frame import decompress
except ImportError: # python-lz4/python-lz4#302
if sys.version_info >= (3, 14):
compress = decompress = None
else:
raise

from django.conf import settings

Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
"Framework :: Django :: 5.2",
Expand Down