Skip to content

Commit cd91cfd

Browse files
Merge pull request #9793 from ThomasWaldmann/support-msgpack121-master
support msgpack 1.2.1
2 parents 1dce2eb + 890da42 commit cd91cfd

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

docs/changes.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ Fixes:
224224

225225
Other changes:
226226

227+
- msgpack: also allow 1.2.1
227228
- Location: simplify parsing/validation, #9678.
228229
For sftp/http(s)/s3/b2/rclone repositories, borg now only detects the scheme and hands the raw
229230
URL to borgstore, which parses and validates it (removing the duplicate parsing borg did before).

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ license-files = ["LICENSE", "AUTHORS"]
3232
dependencies = [
3333
"borghash ~= 0.1.0",
3434
"borgstore[rest] ~= 0.5.1",
35-
"msgpack >=1.0.3, <=1.2.0",
35+
"msgpack >=1.0.3, <=1.2.1",
3636
"packaging",
3737
"platformdirs >=3.0.0, <5.0.0; sys_platform == 'darwin'", # for macOS: breaking changes in 3.0.0.
3838
"platformdirs >=2.6.0, <5.0.0; sys_platform != 'darwin'", # for others: 2.6+ works consistently.

src/borg/helpers/msgpack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def is_supported_msgpack():
218218

219219
if msgpack.version in []: # < add bad releases here to deny list
220220
return False
221-
return (1, 0, 3) <= msgpack.version[:3] <= (1, 2, 0)
221+
return (1, 0, 3) <= msgpack.version[:3] <= (1, 2, 1)
222222

223223

224224
def get_limited_unpacker(kind):

0 commit comments

Comments
 (0)