From 14b4ebeef7948aff73ceb1dd6a0c33bcb11512ec Mon Sep 17 00:00:00 2001 From: AJ Slater Date: Thu, 8 Aug 2024 22:34:46 -0700 Subject: [PATCH 1/2] django 5.1 support --- .github/workflows/ci.yml | 2 +- CHANGELOG.rst | 6 ++++++ docs/quickstart.rst | 2 +- requirements.txt | 2 +- setup.py | 1 + tox.ini | 3 ++- 6 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6ee2cd406..dc626ac47 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: fail-fast: false matrix: python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] - django-version: ['3.2', '4.1', '4.2', '5.0'] + django-version: ['3.2', '4.1', '4.2', '5.0', '5.1'] exclude: - python-version: '3.11' django-version: '3.2' diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 29006fba6..8ffba08af 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,5 +1,11 @@ What’s new in django-cachalot? ============================== +2.6.3 +----- + +- Support for Django 5.1 + + 2.6.2 ----- diff --git a/docs/quickstart.rst b/docs/quickstart.rst index 848c3791d..a86198c03 100644 --- a/docs/quickstart.rst +++ b/docs/quickstart.rst @@ -4,7 +4,7 @@ Quick start Requirements ............ -- Django 3.2, 4.1, 4.2, 5.0 +- Django 3.2, 4.1, 4.2, 5.0, 5.1 - Python 3.7-3.12 - a cache configured as ``'default'`` with one of these backends: diff --git a/requirements.txt b/requirements.txt index e3930bb15..da7146c67 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -Django>=3.2,<5.1 +Django>=3.2,<5.2 diff --git a/setup.py b/setup.py index b6ac1bfa0..a07246b7d 100755 --- a/setup.py +++ b/setup.py @@ -29,6 +29,7 @@ 'Framework :: Django :: 4.1', 'Framework :: Django :: 4.2', 'Framework :: Django :: 5.0', + 'Framework :: Django :: 5.1', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', diff --git a/tox.ini b/tox.ini index df8b570f8..fb07fc636 100644 --- a/tox.ini +++ b/tox.ini @@ -5,7 +5,6 @@ envlist = py{38,39,310,312}-django4.2-{sqlite3,postgresql,mysql}-{redis,memcached,pylibmc,locmem,filebased}, py{310,311,312}-django5.0-{sqlite3,postgresql,mysql}-{redis,memcached,pylibmc,locmem,filebased}, py{310,311,312}-djangomain-{sqlite3,postgresql,mysql}-{redis,memcached,pylibmc,locmem,filebased}, - [testenv] passenv = * @@ -21,6 +20,7 @@ deps = django4.1: Django>=4.1,<4.2 django4.2: Django>=4.2,<4.3 django5.0: Django>=5.0,<5.1 + django5.1: Django>=5.1,<5.2 djangomain: https://github.com/django/django/archive/main.tar.gz psycopg2>=2.9.5,<3.0 psycopg @@ -61,4 +61,5 @@ DJANGO = 4.1: django4.1 4.2: django4.2 5.0: django5.0 + 5.1: django5.1 main: djangomain From 141c2162f529703682ec10c6b180be03223405a4 Mon Sep 17 00:00:00 2001 From: AJ Slater Date: Thu, 8 Aug 2024 22:42:33 -0700 Subject: [PATCH 2/2] addd django 5.0 & 5.1 to the README --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 85d41b737..c80997998 100644 --- a/README.rst +++ b/README.rst @@ -39,7 +39,7 @@ Table of Contents: Quickstart ---------- -Cachalot officially supports Python 3.7-3.11 and Django 3.2, 4.1, 4.2 with the databases PostgreSQL, SQLite, and MySQL. +Cachalot officially supports Python 3.7-3.11 and Django 3.2, 4.1, 4.2, 5.0, 5.1 with the databases PostgreSQL, SQLite, and MySQL. Note: an upper limit on Django version is set for your safety. Please do not ignore it.