mirror of
https://github.com/Hopiu/django-cachalot.git
synced 2026-03-16 21:30:23 +00:00
Add Django 4.1 support (#219)
This commit is contained in:
parent
8ab33ad40d
commit
52406ec111
9 changed files with 16 additions and 7 deletions
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
|
|
@ -13,13 +13,14 @@ jobs:
|
|||
fail-fast: false
|
||||
matrix:
|
||||
python-version: ['3.7', '3.8', '3.9', '3.10']
|
||||
django-version: ['2.2', '3.2', '4.0']
|
||||
django-version: ['2.2', '3.2', '4.0', '4.1']
|
||||
exclude:
|
||||
- python-version: '3.10'
|
||||
django-version: '2.2'
|
||||
- python-version: '3.7'
|
||||
django-version: '4.0'
|
||||
|
||||
- python-version: '3.7'
|
||||
django-version: '4.1'
|
||||
services:
|
||||
redis:
|
||||
image: redis:6
|
||||
|
|
|
|||
|
|
@ -1,6 +1,10 @@
|
|||
What’s new in django-cachalot?
|
||||
==============================
|
||||
|
||||
2.5.2
|
||||
-----
|
||||
- Added Django 4.1 support (#217)
|
||||
|
||||
2.5.1
|
||||
-----
|
||||
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ Table of Contents:
|
|||
Quickstart
|
||||
----------
|
||||
|
||||
Cachalot officially supports Python 3.7-3.10 and Django 2.2, 3.2, and 4.0 with the databases PostgreSQL, SQLite, and MySQL.
|
||||
Cachalot officially supports Python 3.7-3.10 and Django 2.2, 3.2, and 4.0-4.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.
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
VERSION = (2, 5, 1)
|
||||
VERSION = (2, 5, 2)
|
||||
__version__ = ".".join(map(str, VERSION))
|
||||
|
||||
try:
|
||||
|
|
|
|||
|
|
@ -352,7 +352,7 @@ class ReadTestCase(TestUtilsMixin, TransactionTestCase):
|
|||
@all_final_sql_checks
|
||||
def test_subquery(self):
|
||||
additional_tables = []
|
||||
if django_version[0] >= 4 and settings.CACHALOT_FINAL_SQL_CHECK:
|
||||
if django_version[0] == 4 and django_version[1] < 1 and settings.CACHALOT_FINAL_SQL_CHECK:
|
||||
# with Django 4.0 comes some query optimalizations that do selects little differently.
|
||||
additional_tables.append('django_content_type')
|
||||
qs = Test.objects.filter(owner__in=User.objects.all())
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ Quick start
|
|||
Requirements
|
||||
............
|
||||
|
||||
- Django 2.2, 3.2, 4.0
|
||||
- Django 2.2, 3.2, 4.0-4.1
|
||||
- Python 3.7-3.10
|
||||
- a cache configured as ``'default'`` with one of these backends:
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Django>=2.2,<4.1
|
||||
Django>=2.2,<4.2
|
||||
|
|
|
|||
1
setup.py
1
setup.py
|
|
@ -28,6 +28,7 @@ setup(
|
|||
'Framework :: Django :: 2.2',
|
||||
'Framework :: Django :: 3.2',
|
||||
'Framework :: Django :: 4.0',
|
||||
'Framework :: Django :: 4.1',
|
||||
'Programming Language :: Python :: 3',
|
||||
'Programming Language :: Python :: 3.7',
|
||||
'Programming Language :: Python :: 3.8',
|
||||
|
|
|
|||
3
tox.ini
3
tox.ini
|
|
@ -3,6 +3,7 @@ envlist =
|
|||
py{37,38,39}-django2.2-{sqlite3,postgresql,mysql}-{redis,memcached,pylibmc,locmem,filebased},
|
||||
py{37,38,39,310}-django3.2-{sqlite3,postgresql,mysql}-{redis,memcached,pylibmc,locmem,filebased},
|
||||
py{38,39,310}-django4.0-{sqlite3,postgresql,mysql}-{redis,memcached,pylibmc,locmem,filebased},
|
||||
py{38,39,310}-django4.1-{sqlite3,postgresql,mysql}-{redis,memcached,pylibmc,locmem,filebased},
|
||||
py{38,39,310}-djangomain-{sqlite3,postgresql,mysql}-{redis,memcached,pylibmc,locmem,filebased},
|
||||
|
||||
[testenv]
|
||||
|
|
@ -15,6 +16,7 @@ deps =
|
|||
django2.2: Django>=2.2,<2.3
|
||||
django3.2: Django>=3.2,<4.0
|
||||
django4.0: Django>=4.0,<4.1
|
||||
django4.1: Django>=4.1,<4.2
|
||||
djangomain: https://github.com/django/django/archive/main.tar.gz
|
||||
psycopg2-binary>=2.8,<2.9
|
||||
mysqlclient
|
||||
|
|
@ -51,4 +53,5 @@ DJANGO =
|
|||
2.2: django2.2
|
||||
3.2: django3.2
|
||||
4.0: django4.0
|
||||
4.1: django4.1
|
||||
main: djangomain
|
||||
|
|
|
|||
Loading…
Reference in a new issue