Skip to content

Commit 2d241f1

Browse files
authored
Merge pull request sebleier#174 from felixxm/django-3.0
Add support for Django 3.0
2 parents 0b1f870 + eb22a4b commit 2d241f1

File tree

6 files changed

+20
-8
lines changed

6 files changed

+20
-8
lines changed

.travis.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,22 @@ env:
99
- DJANGO_VERSION='<2.0'
1010
- DJANGO_VERSION='>=2.0,<2.1'
1111
- DJANGO_VERSION='>=2.1,<2.2'
12-
- DJANGO_VERSION='==2.2b1'
12+
- DJANGO_VERSION='>=2.2,<3.0'
13+
- DJANGO_VERSION='>=3.0a1,<3.1'
1314
matrix:
1415
exclude:
1516
- python: 2.7
1617
env: DJANGO_VERSION='>=2.0,<2.1'
1718
- python: 2.7
1819
env: DJANGO_VERSION='>=2.1,<2.2'
1920
- python: 2.7
20-
env: DJANGO_VERSION='==2.2b1'
21+
env: DJANGO_VERSION='>=2.2,<3.0'
22+
- python: 2.7
23+
env: DJANGO_VERSION='>=3.0a1,<3.1'
2124
- python: 3.5
2225
env: DJANGO_VERSION='<2.0'
26+
- python: 3.5
27+
env: DJANGO_VERSION='>=3.0a1,<3.1'
2328
- python: 3.6
2429
env: DJANGO_VERSION='<2.0'
2530
- python: 3.7

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
SHELL := /bin/bash
22

33
PACKAGE_NAME=redis_cache
4-
DJANGO_VERSION?=>=1.11,<3.0
4+
DJANGO_VERSION?=>=1.11,<3.1
55

66
.PHONY: install_requirements
77
install_requirements: requirements*.txt

README.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ Docs can be found at http://django-redis-cache.readthedocs.org/en/latest/.
2121
Changelog
2222
=========
2323

24+
X.Y.Z
25+
-----
26+
27+
* Adds support for Django 3.0.
28+
2429
2.0.0
2530
-----
2631

redis_cache/utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
import warnings
33

44
from django.core.exceptions import ImproperlyConfigured
5-
from django.utils import six
6-
from django.utils.encoding import force_text, python_2_unicode_compatible
7-
from django.utils.six.moves.urllib.parse import parse_qs, urlparse
5+
from django.utils.encoding import force_text
6+
from six import python_2_unicode_compatible, string_types
7+
from six.moves.urllib.parse import parse_qs, urlparse
88

99
from redis._compat import unicode
1010
from redis.connection import SSLConnection
@@ -14,7 +14,7 @@ def get_servers(location):
1414
"""Returns a list of servers given the server argument passed in from
1515
Django.
1616
"""
17-
if isinstance(location, six.string_types):
17+
if isinstance(location, string_types):
1818
servers = location.split(',')
1919
elif hasattr(location, '__iter__'):
2020
servers = location

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
redis<4.0
2+
six

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
license="BSD",
1010
packages=["redis_cache", "redis_cache.backends"],
1111
description="Redis Cache Backend for Django",
12-
install_requires=['redis<4.0'],
12+
install_requires=['redis<4.0', 'six'],
1313
classifiers=[
1414
"Programming Language :: Python",
1515
"Programming Language :: Python :: 2.7",
@@ -27,5 +27,6 @@
2727
"Framework :: Django :: 2.0",
2828
"Framework :: Django :: 2.1",
2929
"Framework :: Django :: 2.2",
30+
"Framework :: Django :: 3.0",
3031
],
3132
)

0 commit comments

Comments
 (0)