From 675d7c218c387b58f476c8a58b4fe51d39f136da Mon Sep 17 00:00:00 2001 From: yukinarit Date: Mon, 17 Jun 2024 22:53:23 +0900 Subject: [PATCH] pyserde does not support numpy 2 yet --- pyproject.toml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 3bd3f73f..2714d288 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,10 +33,10 @@ tomli = { version = "*", markers = "extra == 'toml' or extra == 'all'", optional tomli-w = { version = "*", markers = "extra == 'toml' or extra == 'all'", optional = true } pyyaml = { version = "*", markers = "extra == 'yaml' or extra == 'all'", optional = true } numpy = [ - { version = ">1.21.0", markers = "python_version ~= '3.9.0' and (extra == 'numpy' or extra == 'all')", optional = true }, - { version = ">1.22.0", markers = "python_version ~= '3.10' and (extra == 'numpy' or extra == 'all')", optional = true }, - { version = ">1.22.0", markers = "python_version ~= '3.11' and (extra == 'numpy' or extra == 'all')", optional = true }, - { version = ">1.22.0", markers = "python_version ~= '3.12' and (extra == 'numpy' or extra == 'all')", optional = true }, + { version = ">1.21.0,<2.0.0", markers = "python_version ~= '3.9.0' and (extra == 'numpy' or extra == 'all')", optional = true }, + { version = ">1.22.0,<2.0.0", markers = "python_version ~= '3.10' and (extra == 'numpy' or extra == 'all')", optional = true }, + { version = ">1.22.0,<2.0.0", markers = "python_version ~= '3.11' and (extra == 'numpy' or extra == 'all')", optional = true }, + { version = ">1.22.0,<2.0.0", markers = "python_version ~= '3.12' and (extra == 'numpy' or extra == 'all')", optional = true }, ] orjson = { version = "*", markers = "extra == 'orjson' or extra == 'all'", optional = true } plum-dispatch = ">=2,<2.3" @@ -49,10 +49,10 @@ tomli = { version = "*", markers = "python_version <= '3.11.0'" } tomli-w = "*" msgpack = "*" numpy = [ - { version = ">1.21.0", markers = "python_version ~= '3.9.0'" }, - { version = ">1.22.0", markers = "python_version ~= '3.10'" }, - { version = ">1.22.0", markers = "python_version ~= '3.11'" }, - { version = ">1.22.0", markers = "python_version ~= '3.12'" }, + { version = ">1.21.0,<2.0.0", markers = "python_version ~= '3.9.0'" }, + { version = ">1.22.0,<2.0.0", markers = "python_version ~= '3.10'" }, + { version = ">1.22.0,<2.0.0", markers = "python_version ~= '3.11'" }, + { version = ">1.22.0,<2.0.0", markers = "python_version ~= '3.12'" }, ] mypy = "==1.10.0" pytest = "*"