mirror of
https://github.com/Hopiu/django-cachalot.git
synced 2026-03-16 21:30:23 +00:00
Add Django 4.1-4.2 and Python 3.11 support (Fixes #228)
* Increment version to 4.5.0
This commit is contained in:
parent
f1087da6f9
commit
d192bae22c
11 changed files with 35 additions and 29 deletions
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
|
|
@ -12,13 +12,13 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ['3.7', '3.8', '3.9', '3.10']
|
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
|
||||||
django-version: ['2.2', '3.2', '4.0']
|
django-version: ['3.2', '4.1', '4.2']
|
||||||
exclude:
|
exclude:
|
||||||
- python-version: '3.10'
|
|
||||||
django-version: '2.2'
|
|
||||||
- python-version: '3.7'
|
- python-version: '3.7'
|
||||||
django-version: '4.0'
|
django-version: '4.1'
|
||||||
|
- python-version: '3.7'
|
||||||
|
django-version: '4.2'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
redis:
|
redis:
|
||||||
|
|
@ -70,7 +70,7 @@ jobs:
|
||||||
${{ matrix.python-version }}-v1-
|
${{ matrix.python-version }}-v1-
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install -y libmemcached-dev zlib1g-dev
|
sudo apt-get install -y libmemcached-dev zlib1g-dev libpq-dev
|
||||||
python -m pip install --upgrade pip wheel
|
python -m pip install --upgrade pip wheel
|
||||||
python -m pip install tox tox-gh-actions coveralls
|
python -m pip install tox tox-gh-actions coveralls
|
||||||
- name: Tox Test
|
- name: Tox Test
|
||||||
|
|
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -57,6 +57,7 @@ coverage.xml
|
||||||
# Django stuff:
|
# Django stuff:
|
||||||
*.log
|
*.log
|
||||||
local_settings.py
|
local_settings.py
|
||||||
|
*.sqlite3
|
||||||
db.sqlite3
|
db.sqlite3
|
||||||
db.sqlite3-journal
|
db.sqlite3-journal
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,11 @@
|
||||||
What’s new in django-cachalot?
|
What’s new in django-cachalot?
|
||||||
==============================
|
==============================
|
||||||
|
|
||||||
|
2.5.0
|
||||||
|
-----
|
||||||
|
|
||||||
|
- Dropped Django 3.2 support. Added Django 4.1-4.2 and Python 3.11 support (#229)
|
||||||
|
|
||||||
2.4.5
|
2.4.5
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ Table of Contents:
|
||||||
Quickstart
|
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.11 and Django 3.2, 4.1, 4.2 with the databases PostgreSQL, SQLite, and MySQL.
|
||||||
|
|
||||||
Note: an upper limit on Django version is set for your safety. Please do not ignore it.
|
Note: an upper limit on Django version is set for your safety. Please do not ignore it.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,4 @@
|
||||||
VERSION = (2, 4, 5)
|
VERSION = (2, 5, 0)
|
||||||
__version__ = ".".join(map(str, VERSION))
|
__version__ = ".".join(map(str, VERSION))
|
||||||
|
|
||||||
try:
|
default_app_config = "cachalot.apps.CachalotConfig"
|
||||||
from django import VERSION as DJANGO_VERSION
|
|
||||||
|
|
||||||
if DJANGO_VERSION < (3, 2):
|
|
||||||
default_app_config = "cachalot.apps.CachalotConfig"
|
|
||||||
except ImportError: # pragma: no cover
|
|
||||||
default_app_config = "cachalot.apps.CachalotConfig"
|
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,8 @@ Caches your Django ORM queries and automatically invalidates them.
|
||||||
.. image:: http://img.shields.io/pypi/v/django-cachalot.svg?style=flat-square&maxAge=3600
|
.. image:: http://img.shields.io/pypi/v/django-cachalot.svg?style=flat-square&maxAge=3600
|
||||||
:target: https://pypi.python.org/pypi/django-cachalot
|
:target: https://pypi.python.org/pypi/django-cachalot
|
||||||
|
|
||||||
.. image:: http://img.shields.io/travis/noripyt/django-cachalot/master.svg?style=flat-square&maxAge=3600
|
.. image:: https://github.com/noripyt/django-cachalot/actions/workflows/ci.yml/badge.svg
|
||||||
:target: https://travis-ci.org/noripyt/django-cachalot
|
:target: https://github.com/noripyt/django-cachalot/actions/workflows/ci.yml
|
||||||
|
|
||||||
.. image:: http://img.shields.io/coveralls/noripyt/django-cachalot/master.svg?style=flat-square&maxAge=3600
|
.. image:: http://img.shields.io/coveralls/noripyt/django-cachalot/master.svg?style=flat-square&maxAge=3600
|
||||||
:target: https://coveralls.io/r/noripyt/django-cachalot?branch=master
|
:target: https://coveralls.io/r/noripyt/django-cachalot?branch=master
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,8 @@ Quick start
|
||||||
Requirements
|
Requirements
|
||||||
............
|
............
|
||||||
|
|
||||||
- Django 2.2, 3.2, 4.0
|
- Django 3.2, 4.1, 4.2
|
||||||
- Python 3.7-3.10
|
- Python 3.7-3.11
|
||||||
- a cache configured as ``'default'`` with one of these backends:
|
- a cache configured as ``'default'`` with one of these backends:
|
||||||
|
|
||||||
- `django-redis <https://github.com/niwinz/django-redis>`_
|
- `django-redis <https://github.com/niwinz/django-redis>`_
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
Django>=2.2,<4.1
|
Django>=3.2,<4.3
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,8 @@
|
||||||
|
|
||||||
django>=2
|
django>=2
|
||||||
|
|
||||||
psycopg2-binary
|
psycopg2
|
||||||
|
psycopg
|
||||||
mysqlclient
|
mysqlclient
|
||||||
django-redis
|
django-redis
|
||||||
python-memcached
|
python-memcached
|
||||||
|
|
|
||||||
5
setup.py
5
setup.py
|
|
@ -25,14 +25,15 @@ setup(
|
||||||
'Intended Audience :: Developers',
|
'Intended Audience :: Developers',
|
||||||
'License :: OSI Approved :: BSD License',
|
'License :: OSI Approved :: BSD License',
|
||||||
'Operating System :: OS Independent',
|
'Operating System :: OS Independent',
|
||||||
'Framework :: Django :: 2.2',
|
|
||||||
'Framework :: Django :: 3.2',
|
'Framework :: Django :: 3.2',
|
||||||
'Framework :: Django :: 4.0',
|
'Framework :: Django :: 4.1',
|
||||||
|
'Framework :: Django :: 4.2',
|
||||||
'Programming Language :: Python :: 3',
|
'Programming Language :: Python :: 3',
|
||||||
'Programming Language :: Python :: 3.7',
|
'Programming Language :: Python :: 3.7',
|
||||||
'Programming Language :: Python :: 3.8',
|
'Programming Language :: Python :: 3.8',
|
||||||
'Programming Language :: Python :: 3.9',
|
'Programming Language :: Python :: 3.9',
|
||||||
'Programming Language :: Python :: 3.10',
|
'Programming Language :: Python :: 3.10',
|
||||||
|
'Programming Language :: Python :: 3.11',
|
||||||
'Topic :: Internet :: WWW/HTTP',
|
'Topic :: Internet :: WWW/HTTP',
|
||||||
],
|
],
|
||||||
license='BSD',
|
license='BSD',
|
||||||
|
|
|
||||||
16
tox.ini
16
tox.ini
|
|
@ -1,8 +1,8 @@
|
||||||
[tox]
|
[tox]
|
||||||
envlist =
|
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{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,311}-django4.2-{sqlite3,postgresql,mysql}-{redis,memcached,pylibmc,locmem,filebased},
|
||||||
py{38,39,310}-djangomain-{sqlite3,postgresql,mysql}-{redis,memcached,pylibmc,locmem,filebased},
|
py{38,39,310}-djangomain-{sqlite3,postgresql,mysql}-{redis,memcached,pylibmc,locmem,filebased},
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
|
|
@ -11,12 +11,15 @@ basepython =
|
||||||
py38: python3.8
|
py38: python3.8
|
||||||
py39: python3.9
|
py39: python3.9
|
||||||
py310: python3.10
|
py310: python3.10
|
||||||
|
py311: python3.11
|
||||||
deps =
|
deps =
|
||||||
django2.2: Django>=2.2,<2.3
|
django2.2: Django>=2.2,<2.3
|
||||||
django3.2: Django>=3.2,<4.0
|
django3.2: Django>=3.2,<4.0
|
||||||
django4.0: Django>=4.0,<4.1
|
django4.1: Django>=4.1,<4.2
|
||||||
|
django4.2: Django>=4.2,<4.3
|
||||||
djangomain: https://github.com/django/django/archive/main.tar.gz
|
djangomain: https://github.com/django/django/archive/main.tar.gz
|
||||||
psycopg2-binary>=2.8,<2.9
|
psycopg2>=2.8,<2.9
|
||||||
|
psycopg
|
||||||
mysqlclient
|
mysqlclient
|
||||||
django-redis
|
django-redis
|
||||||
python-memcached
|
python-memcached
|
||||||
|
|
@ -45,10 +48,11 @@ python =
|
||||||
3.8: py38
|
3.8: py38
|
||||||
3.9: py39
|
3.9: py39
|
||||||
3.10: py310
|
3.10: py310
|
||||||
|
3.11: py311
|
||||||
|
|
||||||
[gh-actions:env]
|
[gh-actions:env]
|
||||||
DJANGO =
|
DJANGO =
|
||||||
2.2: django2.2
|
|
||||||
3.2: django3.2
|
3.2: django3.2
|
||||||
4.0: django4.0
|
4.1: django4.1
|
||||||
|
4.2: django4.2
|
||||||
main: djangomain
|
main: djangomain
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue