From 9f8886a3095a7fc370a13b0f4ac07e61b1055d23 Mon Sep 17 00:00:00 2001 From: Martha Cryan Date: Fri, 26 Jul 2024 16:08:21 -0700 Subject: [PATCH 1/4] Add a build with no numpy to circleci --- .circleci/config.yml | 9 ++++++++ .../requirements_312_no_numpy_optional.txt | 21 +++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 packages/python/plotly/test_requirements/requirements_312_no_numpy_optional.txt diff --git a/.circleci/config.yml b/.circleci/config.yml index e16e0e9fd7b..f11800b00be 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -234,6 +234,14 @@ jobs: - test_optional: py: "39_pandas_2" + # No numpy + python_312_no_numpy: + docker: + - image: cimg/python:3.12-browsers + steps: + - test_optional: + py: "312_no_numpy" + # Orca python_38_orca: docker: @@ -598,5 +606,6 @@ workflows: - python_39_pandas_2_optional - python_38_orca - python_39_percy + - python_312_no_numpy - build-doc diff --git a/packages/python/plotly/test_requirements/requirements_312_no_numpy_optional.txt b/packages/python/plotly/test_requirements/requirements_312_no_numpy_optional.txt new file mode 100644 index 00000000000..dbf02f2bea7 --- /dev/null +++ b/packages/python/plotly/test_requirements/requirements_312_no_numpy_optional.txt @@ -0,0 +1,21 @@ +requests==2.31.0 +tenacity==8.2.3 +pandas +xarray==2023.12.0 +statsmodels +Pillow==10.2.0 +pytest==7.4.4 +pytz==2023.3.post1 +ipython[all]==7.22.0 +ipywidgets<8 +ipykernel==5.5.3 +jupyter==1.0.0 +scipy==1.11.4 +Shapely==2.0.2 +geopandas==0.14.2 +pyshp==2.3.1 +matplotlib==3.8.2 +scikit-image==0.22.0 +psutil==5.9.7 +kaleido +orjson==3.9.10 \ No newline at end of file From 543418aaca12edc137a1e044a36a32677f7b740f Mon Sep 17 00:00:00 2001 From: Martha Cryan Date: Mon, 29 Jul 2024 12:58:33 -0700 Subject: [PATCH 2/4] Add command to check for numpy not being installed --- .circleci/config.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index f11800b00be..f5554d146d6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -239,6 +239,10 @@ jobs: docker: - image: cimg/python:3.12-browsers steps: + - run: + name: Check that numpy is not installed + command: | + pip list | grep numpy > /dev/null 2>&1 && { exit 1 } || { exit 0 } - test_optional: py: "312_no_numpy" From 60a8b46623fa7fc5a5a9be2837d1c2b7f247b55c Mon Sep 17 00:00:00 2001 From: Martha Cryan Date: Mon, 29 Jul 2024 14:12:32 -0700 Subject: [PATCH 3/4] try different command --- .circleci/config.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index f5554d146d6..b2f107a5373 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -242,7 +242,10 @@ jobs: - run: name: Check that numpy is not installed command: | - pip list | grep numpy > /dev/null 2>&1 && { exit 1 } || { exit 0 } + if pip list | grep numpy > /dev/null 2>&1 + then exit 1 + else exit 0 + fi - test_optional: py: "312_no_numpy" From ff0ee983ca92b72c9877224cccf3ec647cb6365b Mon Sep 17 00:00:00 2001 From: Martha Cryan Date: Mon, 29 Jul 2024 16:08:59 -0700 Subject: [PATCH 4/4] try different command --- .circleci/config.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index b2f107a5373..912add23e0a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -240,12 +240,12 @@ jobs: - image: cimg/python:3.12-browsers steps: - run: - name: Check that numpy is not installed - command: | - if pip list | grep numpy > /dev/null 2>&1 - then exit 1 - else exit 0 - fi + name: Check that numpy is not installed + command: | + if pip list | grep numpy > /dev/null 2>&1 + then exit 1 + else exit 0 + fi - test_optional: py: "312_no_numpy"