Skip to content

Commit

Permalink
Drop Python 3.5, 3.6 and Django 2.1, 2.2, 3.0 and 3.1 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Suor committed Feb 25, 2023
1 parent 86b22a4 commit d794ac0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "pypy3"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "pypy3"]
experimental: [false]
include:
- python-version: "3.10"
Expand Down
4 changes: 3 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ And there is more to it:
Requirements
++++++++++++

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


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

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.

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"))`


Writing a test
--------------
Expand Down
8 changes: 1 addition & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
],
python_requires='>=3.5',
install_requires=[
'django>=2.1',
'django>=3.2',
'redis>=3.0.0',
'funcy>=1.8,<2.0',
],
Expand All @@ -33,18 +33,12 @@
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Framework :: Django',
'Framework :: Django :: 2.1',
'Framework :: Django :: 2.2',
'Framework :: Django :: 3.0',
'Framework :: Django :: 3.1',
'Framework :: Django :: 3.2',
'Framework :: Django :: 4.0',
'Framework :: Django :: 4.1',
Expand Down
16 changes: 4 additions & 12 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
[tox]
envlist =
lint,
py35-dj{21,22}
py36-dj{30,31},
py37-dj{30,31,32},
py{38,39}-dj{30,31,32,40},
py37-dj32,
py{38,39}-dj{32,40},
py310-dj{32,40,41},
py311-dj41,
pypy3-dj{30,31,32}
pypy3-dj{40,41}

[gh-actions]
python =
3.5: py35
3.6: py36
3.7: py37
3.8: py38
3.9: py39
Expand All @@ -29,16 +25,12 @@ setenv =
CPLUS_INCLUDE_PATH=/usr/include/gdal
C_INCLUDE_PATH=/usr/include/gdal
deps =
dj21: Django>=2.1,<2.2
dj22: Django>=2.2,<2.3
dj30: Django>=3.0,<3.1
dj31: Django>=3.1,<3.2
dj32: Django>=3.2,<3.3
dj40: Django>=4.0,<4.1
dj41: Django>=4.1,<4.2
djmaster: git+https://github.com/django/django
mysqlclient
py{35,36,37,38,39,310,311}: psycopg2-binary
py{37,38,39,310,311}: psycopg2-binary
; gdal=={env:GDAL_VERSION:2.4}
pypy3: psycopg2cffi>=2.7.6
before_after==1.0.0
Expand Down

0 comments on commit d794ac0

Please sign in to comment.