From a550fbd845670d357cb1b34632260b6200d518de Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sun, 24 Dec 2023 02:09:58 +0100 Subject: [PATCH] msgpack: require >= 1.0.2 <= 1.0.7 that simplifies things: - no broken release in that range - no ancient stuff < 1.0 any more --- setup.py | 2 +- src/borg/helpers/msgpack.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index a80660e0d..7e693bee3 100644 --- a/setup.py +++ b/setup.py @@ -70,7 +70,7 @@ # Please note: # using any other msgpack version is not supported by borg development and # any feedback related to issues caused by this will be ignored. - 'msgpack >=0.5.6, <=1.0.7, !=1.0.1', + 'msgpack >=1.0.2, <=1.0.7', 'packaging', ] diff --git a/src/borg/helpers/msgpack.py b/src/borg/helpers/msgpack.py index 197d2debd..0cec24a31 100644 --- a/src/borg/helpers/msgpack.py +++ b/src/borg/helpers/msgpack.py @@ -182,8 +182,8 @@ def is_slow_msgpack(): def is_supported_msgpack(): # DO NOT CHANGE OR REMOVE! See also requirements and comments in setup.py. import msgpack - return (0, 5, 6) <= msgpack.version <= (1, 0, 7) and \ - msgpack.version not in [(1, 0, 1), ] # < add bad releases here to deny list + return (1, 0, 2) <= msgpack.version <= (1, 0, 7) and \ + msgpack.version not in [] # < add bad releases here to deny list def get_limited_unpacker(kind):