From d22eaddfb049b939c914dd9f5a0f148099ebd513 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Sun, 3 Sep 2023 22:13:34 +0200 Subject: [PATCH] CI: Explicitly install NumPy 1.26.0b1 on Python 3.12 --- setup.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 616a0f4..7301e98 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, "README.rst")).read() -no_linux_on_arm = "platform_system != 'Linux' or (platform_machine != 'armv7l' and platform_machine != 'aarch64')" +no_linux_on_arm = "(platform_system != 'Linux' or (platform_machine != 'armv7l' and platform_machine != 'aarch64'))" requires = [ # Core @@ -16,7 +16,10 @@ "munch>=2.5.0,<5", "tqdm>=4.60.0,<5", # Filtering - f"pandas<2.1; {no_linux_on_arm}", + f"numpy; {no_linux_on_arm} and python_version<'3.12.0rc1'", + f"numpy>=1.26.0b1; {no_linux_on_arm} and python_version>='3.12.0.rc1'", + f"pandas<2.1; {no_linux_on_arm} and python_version<'3.12.0rc1'", + f"pandas<2.2; {no_linux_on_arm} and python_version>='3.12.0rc1'", f"duckdb<0.9; {no_linux_on_arm}", # Grafana "requests>=2.26,<3",