From 973048a901876c511e79cbe6209b8a104b547808 Mon Sep 17 00:00:00 2001 From: Vincent Adam Date: Thu, 18 Apr 2024 22:21:17 +0200 Subject: [PATCH] set matching python / tf --- pyproject.toml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 93ddc0b..071cc31 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,6 +25,15 @@ importlib-metadata = ">=4.4,<5.0" numpy = "^1.21.0" python = ">=3.10,<3.11" tensorflow = ">=2.4.0,<2.9.0" +[tool.poetry.dependencies] +python = "^3.8 || ^3.9 || ^3.10 || ^3.11 || ^3.12" +tensorflow = [ + { version = "^2.4", markers = "python_version == '3.8' and python_version < '3.10'" }, + { version = "^2.7", markers = "python_version == '3.10'" }, + { version = "^2.9", markers = "python_version == '3.11'" }, + { version = "^2.12", markers = "python_version == '3.12'" } +] + [tool.poetry.dev-dependencies] cpplint = "^1.5.3" @@ -74,6 +83,6 @@ line_length = 95 [build-system] -requires = ["poetry>=0.12", "tensorflow>=2.4.0,<2.10.0", "cmake"] +requires = ["poetry>=0.12", "tensorflow>=2.4.0,<=2.12.0", "cmake"] build-backend = "poetry.masonry.api" flags = ["-DCMAKE_CXX_STANDARD=14"]