Skip to content

Commit 6457306

Browse files
committed
Drop Python 3.5, 3.6 and Django 2.1, 2.2, 3.0 and 3.1 support
1 parent 86ef569 commit 6457306

File tree

4 files changed

+9
-21
lines changed

4 files changed

+9
-21
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
strategy:
2727
fail-fast: false
2828
matrix:
29-
python-version: ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "pypy3"]
29+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "pypy3"]
3030
experimental: [false]
3131
include:
3232
- python-version: "3.10"

README.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ And there is more to it:
2222
Requirements
2323
++++++++++++
2424

25-
Python 3.5+, Django 2.1+ and Redis 4.0+.
25+
Python 3.7+, Django 3.2+ and Redis 4.0+.
2626

2727

2828
Installation
@@ -807,6 +807,8 @@ Here come some performance tips to make cacheops and Django ORM faster.
807807

808808
Caching querysets with large amount of filters also slows down all subsequent invalidation on that model. You can disable caching if more than some amount of fields is used in filter simultaneously.
809809

810+
6. Split database queries into smaller ones when you cache them. This goes against usual approach, but this allows invalidation to be more granular: smaller parts will be invalidated independently and each part will invalidate more precisely. E.g. `Post.objects.filter(category__slug="foo")` and `Post.objects.filter(category=Category.objects.get(slug="foo"))`
811+
810812

811813
Writing a test
812814
--------------

setup.py

+1-7
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
],
2525
python_requires='>=3.5',
2626
install_requires=[
27-
'django>=2.1',
27+
'django>=3.2',
2828
'redis>=3.0.0',
2929
'funcy>=1.8,<2.0',
3030
],
@@ -33,18 +33,12 @@
3333
'License :: OSI Approved :: BSD License',
3434
'Operating System :: OS Independent',
3535
'Programming Language :: Python',
36-
'Programming Language :: Python :: 3.5',
37-
'Programming Language :: Python :: 3.6',
3836
'Programming Language :: Python :: 3.7',
3937
'Programming Language :: Python :: 3.8',
4038
'Programming Language :: Python :: 3.9',
4139
'Programming Language :: Python :: 3.10',
4240
'Programming Language :: Python :: 3.11',
4341
'Framework :: Django',
44-
'Framework :: Django :: 2.1',
45-
'Framework :: Django :: 2.2',
46-
'Framework :: Django :: 3.0',
47-
'Framework :: Django :: 3.1',
4842
'Framework :: Django :: 3.2',
4943
'Framework :: Django :: 4.0',
5044
'Framework :: Django :: 4.1',

tox.ini

+4-12
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
[tox]
22
envlist =
33
lint,
4-
py35-dj{21,22}
5-
py36-dj{30,31},
6-
py37-dj{30,31,32},
7-
py{38,39}-dj{30,31,32,40},
4+
py37-dj32,
5+
py{38,39}-dj{32,40},
86
py310-dj{32,40,41},
97
py311-dj41,
10-
pypy3-dj{30,31,32}
8+
pypy3-dj{40,41}
119

1210
[gh-actions]
1311
python =
14-
3.5: py35
15-
3.6: py36
1612
3.7: py37
1713
3.8: py38
1814
3.9: py39
@@ -29,16 +25,12 @@ setenv =
2925
CPLUS_INCLUDE_PATH=/usr/include/gdal
3026
C_INCLUDE_PATH=/usr/include/gdal
3127
deps =
32-
dj21: Django>=2.1,<2.2
33-
dj22: Django>=2.2,<2.3
34-
dj30: Django>=3.0,<3.1
35-
dj31: Django>=3.1,<3.2
3628
dj32: Django>=3.2,<3.3
3729
dj40: Django>=4.0,<4.1
3830
dj41: Django>=4.1,<4.2
3931
djmaster: git+https://github.com/django/django
4032
mysqlclient
41-
py{35,36,37,38,39,310,311}: psycopg2-binary
33+
py{37,38,39,310,311}: psycopg2-binary
4234
; gdal=={env:GDAL_VERSION:2.4}
4335
pypy3: psycopg2cffi>=2.7.6
4436
before_after==1.0.0

0 commit comments

Comments
 (0)