File tree Expand file tree Collapse file tree 4 files changed +9
-7
lines changed Expand file tree Collapse file tree 4 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 1
- from distutils .version import LooseVersion
1
+ from packaging .version import Version
2
2
from itertools import chain
3
3
from time import time
4
4
from queue import LifoQueue , Empty , Full
55
55
if HIREDIS_AVAILABLE :
56
56
import hiredis
57
57
58
- hiredis_version = LooseVersion (hiredis .__version__ )
58
+ hiredis_version = Version (hiredis .__version__ )
59
59
HIREDIS_SUPPORTS_CALLABLE_ERRORS = \
60
- hiredis_version >= LooseVersion ('0.1.3' )
60
+ hiredis_version >= Version ('0.1.3' )
61
61
HIREDIS_SUPPORTS_BYTE_BUFFER = \
62
- hiredis_version >= LooseVersion ('0.1.4' )
62
+ hiredis_version >= Version ('0.1.4' )
63
63
HIREDIS_SUPPORTS_ENCODING_ERRORS = \
64
- hiredis_version >= LooseVersion ('1.0.0' )
64
+ hiredis_version >= Version ('1.0.0' )
65
65
66
66
HIREDIS_USE_BYTE_BUFFER = True
67
67
# only use byte buffer if hiredis supports it
Original file line number Diff line number Diff line change 1
1
deprecated
2
+ packaging
Original file line number Diff line number Diff line change 24
24
25
25
python_requires = ">=3.6" ,
26
26
install_requires = [
27
- 'deprecated'
27
+ 'deprecated==1.2.3' ,
28
+ 'packaging==21.3' ,
28
29
],
29
30
classifiers = [
30
31
"Development Status :: 5 - Production/Stable" ,
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ extras =
108
108
setenv =
109
109
CLUSTER_URL = " redis://localhost:16379/0"
110
110
commands =
111
- redis : pytest --cov =./ --cov-report =xml:coverage_redis.xml -W always -m ' not onlycluster' {posargs}
111
+ standalone : pytest --cov =./ --cov-report =xml:coverage_redis.xml -W always -m ' not onlycluster' {posargs}
112
112
cluster: pytest --cov =./ --cov-report =xml:coverage_cluster.xml -W always -m ' not onlynoncluster and not redismod' --redis-url ={env:CLUSTER_URL:} {posargs}
113
113
114
114
[testenv:devenv]
You can’t perform that action at this time.
0 commit comments