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
22from itertools import chain
33from time import time
44from queue import LifoQueue , Empty , Full
5555if HIREDIS_AVAILABLE :
5656 import hiredis
5757
58- hiredis_version = LooseVersion (hiredis .__version__ )
58+ hiredis_version = Version (hiredis .__version__ )
5959 HIREDIS_SUPPORTS_CALLABLE_ERRORS = \
60- hiredis_version >= LooseVersion ('0.1.3' )
60+ hiredis_version >= Version ('0.1.3' )
6161 HIREDIS_SUPPORTS_BYTE_BUFFER = \
62- hiredis_version >= LooseVersion ('0.1.4' )
62+ hiredis_version >= Version ('0.1.4' )
6363 HIREDIS_SUPPORTS_ENCODING_ERRORS = \
64- hiredis_version >= LooseVersion ('1.0.0' )
64+ hiredis_version >= Version ('1.0.0' )
6565
6666 HIREDIS_USE_BYTE_BUFFER = True
6767 # only use byte buffer if hiredis supports it
Original file line number Diff line number Diff line change 11deprecated
2+ packaging
Original file line number Diff line number Diff line change 2424 author_email = "oss@redis.com" ,
2525 python_requires = ">=3.6" ,
2626 install_requires = [
27- 'deprecated'
27+ 'deprecated==1.2.3' ,
28+ 'packaging==21.3' ,
2829 ],
2930 classifiers = [
3031 "Development Status :: 5 - Production/Stable" ,
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ extras =
108108setenv =
109109 CLUSTER_URL = " redis://localhost:16379/0"
110110commands =
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}
112112 cluster: pytest --cov =./ --cov-report =xml:coverage_cluster.xml -W always -m ' not onlynoncluster and not redismod' --redis-url ={env:CLUSTER_URL:} {posargs}
113113
114114[testenv:devenv]
You can’t perform that action at this time.
0 commit comments