From be401b0f497f4de4f70c479acf5db0e9d0977ba3 Mon Sep 17 00:00:00 2001 From: Antoine Paletta <98616558+apaletta3@users.noreply.github.com> Date: Wed, 19 Jun 2024 21:13:25 +0200 Subject: [PATCH 1/2] build: limit max numpy version to below 2.0.0 --- bindings/python/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/python/requirements.txt b/bindings/python/requirements.txt index be626ae6..31e7edf8 100644 --- a/bindings/python/requirements.txt +++ b/bindings/python/requirements.txt @@ -1,5 +1,5 @@ # Apache License 2.0 -numpy>=1.17.4 +numpy>=1.17.4,<2.0.0 open-space-toolkit-core~=3.0 From 505e4c8bd050982ab614a39f5c2fc55f23b460f0 Mon Sep 17 00:00:00 2001 From: Antoine Paletta Date: Wed, 19 Jun 2024 19:25:22 +0000 Subject: [PATCH 2/2] fix: add extra locations where numpy is specified --- docker/jupyter/Dockerfile | 2 +- docker/release/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/jupyter/Dockerfile b/docker/jupyter/Dockerfile index 2d8f42db..329f0f18 100644 --- a/docker/jupyter/Dockerfile +++ b/docker/jupyter/Dockerfile @@ -18,7 +18,7 @@ RUN apt-get update \ && apt-get install -y curl \ && rm -rf /var/lib/apt/lists/* -RUN pip install --quiet "numpy" "pandas" "plotly" "ipywidgets>=7.6" "ipympl>=0.9.0" +RUN pip install --quiet "numpy>=1.17.4,<2.0.0" "pandas" "plotly" "ipywidgets>=7.6" "ipympl>=0.9.0" # Install JupyterLab extensions diff --git a/docker/release/Dockerfile b/docker/release/Dockerfile index 9eaa671b..4fce5643 100644 --- a/docker/release/Dockerfile +++ b/docker/release/Dockerfile @@ -49,7 +49,7 @@ FROM python:${PYTHON_TEST_VERSION}-slim as python-release LABEL maintainer="lucas@loftorbital.com" -RUN pip install ipython numpy +RUN pip install ipython "numpy>=1.17.4,<2.0.0" COPY --from=python-builder /usr/local/lib/python${PYTHON_TEST_VERSION}/site-packages/ostk /usr/local/lib/python${PYTHON_TEST_VERSION}/site-packages/ostk