diff --git a/setup.cfg b/setup.cfg index c1c62147..dbe6e977 100644 --- a/setup.cfg +++ b/setup.cfg @@ -39,7 +39,7 @@ python_requires = >=3.9 setup_requires = setuptools_scm[toml] >= 6.2 install_requires = - msgpack >=1.0.3, <=1.0.4 + msgpack >=1.0.3, <=1.0.5 packaging platformdirs >=3.0.0, <4.0.0; sys_platform == 'darwin' # for macOS: breaking changes in 3.0.0, platformdirs >=2.6.0, <4.0.0; sys_platform != 'darwin' # for others: 2.6+ works consistently. diff --git a/src/borg/helpers/msgpack.py b/src/borg/helpers/msgpack.py index 0ea51d01..ddbd9594 100644 --- a/src/borg/helpers/msgpack.py +++ b/src/borg/helpers/msgpack.py @@ -204,14 +204,12 @@ def is_slow_msgpack(): def is_supported_msgpack(): - # DO NOT CHANGE OR REMOVE! See also requirements and comments in setup.py. + # DO NOT CHANGE OR REMOVE! See also requirements and comments in setup.cfg. import msgpack - return (1, 0, 3) <= msgpack.version <= ( - 1, - 0, - 4, - ) and msgpack.version not in [] # < add bad releases here to deny list + if msgpack.version in []: # < add bad releases here to deny list + return False + return (1, 0, 3) <= msgpack.version <= (1, 0, 5) def get_limited_unpacker(kind):