allow msgpack 1.0.5 also

This commit is contained in:
Thomas Waldmann 2023-03-09 22:26:38 +01:00
parent 2c232449b0
commit 1ab90b339e
No known key found for this signature in database
GPG Key ID: 243ACFA951F78E01
2 changed files with 5 additions and 7 deletions

View File

@ -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.

View File

@ -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):