From 77234806365805951fe864b1fb86c2a87baee88a Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Tue, 26 Sep 2023 18:37:45 -0500 Subject: [PATCH] build: Disallow TensorFlow v2.14.0 * tensorflow v2.14.0 breaks tensorflow-probability at import time. Until this is fixed, tensorflow v2.14.0 can't be used. - c.f. https://github.com/tensorflow/probability/issues/ 1752 --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 1e50c697ce..7e3305d8ad 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -67,8 +67,8 @@ Homepage = "https://github.com/scikit-hep/pyhf" [project.optional-dependencies] shellcomplete = ["click_completion"] tensorflow = [ - "tensorflow>=2.7.0; platform_machine != 'arm64'", # c.f. PR #1962 - "tensorflow-macos>=2.7.0; platform_machine == 'arm64' and platform_system == 'Darwin'", # c.f. PR #2119 + "tensorflow>=2.7.0,!=2.14.0; platform_machine != 'arm64'", # c.f. PR #1962 + "tensorflow-macos>=2.7.0,!=2.14.0; platform_machine == 'arm64' and platform_system == 'Darwin'", # c.f. PR #2119 "tensorflow-probability>=0.11.0", # c.f. PR #1657 ] torch = ["torch>=1.10.0"] # c.f. PR #1657