File tree Expand file tree Collapse file tree 6 files changed +20
-8
lines changed Expand file tree Collapse file tree 6 files changed +20
-8
lines changed Original file line number Diff line number Diff line change 9
9
- DJANGO_VERSION='<2.0'
10
10
- DJANGO_VERSION='>=2.0,<2.1'
11
11
- 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'
13
14
matrix :
14
15
exclude :
15
16
- python : 2.7
16
17
env : DJANGO_VERSION='>=2.0,<2.1'
17
18
- python : 2.7
18
19
env : DJANGO_VERSION='>=2.1,<2.2'
19
20
- 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'
21
24
- python : 3.5
22
25
env : DJANGO_VERSION='<2.0'
26
+ - python : 3.5
27
+ env : DJANGO_VERSION='>=3.0a1,<3.1'
23
28
- python : 3.6
24
29
env : DJANGO_VERSION='<2.0'
25
30
- python : 3.7
Original file line number Diff line number Diff line change 1
1
SHELL := /bin/bash
2
2
3
3
PACKAGE_NAME =redis_cache
4
- DJANGO_VERSION?=> =1.11,<3.0
4
+ DJANGO_VERSION?=> =1.11,<3.1
5
5
6
6
.PHONY : install_requirements
7
7
install_requirements : requirements* .txt
Original file line number Diff line number Diff line change @@ -21,6 +21,11 @@ Docs can be found at http://django-redis-cache.readthedocs.org/en/latest/.
21
21
Changelog
22
22
=========
23
23
24
+ X.Y.Z
25
+ -----
26
+
27
+ * Adds support for Django 3.0.
28
+
24
29
2.0.0
25
30
-----
26
31
Original file line number Diff line number Diff line change 2
2
import warnings
3
3
4
4
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
8
8
9
9
from redis ._compat import unicode
10
10
from redis .connection import SSLConnection
@@ -14,7 +14,7 @@ def get_servers(location):
14
14
"""Returns a list of servers given the server argument passed in from
15
15
Django.
16
16
"""
17
- if isinstance (location , six . string_types ):
17
+ if isinstance (location , string_types ):
18
18
servers = location .split (',' )
19
19
elif hasattr (location , '__iter__' ):
20
20
servers = location
Original file line number Diff line number Diff line change 1
1
redis < 4.0
2
+ six
Original file line number Diff line number Diff line change 9
9
license = "BSD" ,
10
10
packages = ["redis_cache" , "redis_cache.backends" ],
11
11
description = "Redis Cache Backend for Django" ,
12
- install_requires = ['redis<4.0' ],
12
+ install_requires = ['redis<4.0' , 'six' ],
13
13
classifiers = [
14
14
"Programming Language :: Python" ,
15
15
"Programming Language :: Python :: 2.7" ,
27
27
"Framework :: Django :: 2.0" ,
28
28
"Framework :: Django :: 2.1" ,
29
29
"Framework :: Django :: 2.2" ,
30
+ "Framework :: Django :: 3.0" ,
30
31
],
31
32
)
You can’t perform that action at this time.
0 commit comments