From a507a2cb3b9fed025743e80971ce1615887a47e4 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sat, 2 Mar 2024 14:19:11 +0100 Subject: [PATCH 1/2] allow msgpack 1.0.8, fixes #8133 --- pyproject.toml | 2 +- src/borg/helpers/msgpack.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 792c0c78..9f58ed3c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,7 +29,7 @@ classifiers = [ ] license = {text="BSD"} dependencies = [ - "msgpack >=1.0.3, <=1.0.7", + "msgpack >=1.0.3, <=1.0.8", "packaging", "platformdirs >=3.0.0, <5.0.0; sys_platform == 'darwin'", # for macOS: breaking changes in 3.0.0, "platformdirs >=2.6.0, <5.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 4601f089..b7ec23be 100644 --- a/src/borg/helpers/msgpack.py +++ b/src/borg/helpers/msgpack.py @@ -209,7 +209,7 @@ def is_supported_msgpack(): if msgpack.version in []: # < add bad releases here to deny list return False - return (1, 0, 3) <= msgpack.version <= (1, 0, 7) + return (1, 0, 3) <= msgpack.version <= (1, 0, 8) def get_limited_unpacker(kind): From 03e964271e23f3e52eae188509ce7a1ec8e3f689 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sat, 2 Mar 2024 14:21:48 +0100 Subject: [PATCH 2/2] require Cython 3.0.3 at least, fixes #8133 The fix for the Python 3.12 memory leak issue was in Cython 3.0.3+. --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 9f58ed3c..70c8130f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -65,7 +65,7 @@ where = ["src"] "*" = ["*.c", "*.h", "*.pyx"] [build-system] -requires = ["setuptools", "wheel", "pkgconfig", "Cython>=3", "setuptools_scm[toml]>=6.2"] +requires = ["setuptools", "wheel", "pkgconfig", "Cython>=3.0.3", "setuptools_scm[toml]>=6.2"] build-backend = "setuptools.build_meta" [tool.setuptools_scm]