From 5b7a6d3e9c2368e94e47b81cb7e38c9aa2b3ac70 Mon Sep 17 00:00:00 2001 From: rmorotti Date: Wed, 28 Jun 2023 15:25:50 +0100 Subject: [PATCH] define which version of python and packages to tests --- .circleci/config.yml | 9 ++++++--- CHANGES.md | 1 + 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 1f6d5a3c..231ed3c2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -51,10 +51,10 @@ defaults: &defaults virtualenv ci . ci/bin/activate python setup.py develop - pip install --upgrade pip + pip install --upgrade pip==21.0.1 setuptools==58.0.4 pip install pytest-server-fixtures[mongodb] - echo y | pip uninstall tzlocal # because circleci will install >5.0b - pip install tzlocal==4.2 # works for python 3.6 and 3.8 + pip uninstall -y tzlocal # because circleci will install >5.0b + pip install $TEST_PACKAGES pip freeze python --version # Save dependency cache @@ -95,6 +95,7 @@ jobs: CIRCLE_TEST_REPORTS: /tmp/circleci-test-results/3_6 VERSION: $VERSION IMAGE_NAME: mangroup/arctic + TEST_PACKAGES: "tzlocal==4.2 numpy==1.14.6 pandas==0.25.3" working_directory: ~/arctic_3_6 docker: - image: cimg/python:3.6-node @@ -107,6 +108,7 @@ jobs: CIRCLE_TEST_REPORTS: /tmp/circleci-test-results/3_7 VERSION: $VERSION IMAGE_NAME: mangroup/arctic + TEST_PACKAGES: "tzlocal==4.2 numpy==1.18.5 pandas==1.0.5" working_directory: ~/arctic_3_7 docker: - image: cimg/python:3.7-node @@ -119,6 +121,7 @@ jobs: CIRCLE_TEST_REPORTS: /tmp/circleci-test-results/3_8 VERSION: $VERSION IMAGE_NAME: mangroup/arctic + TEST_PACKAGES: "tzlocal==4.2 numpy==1.21.6 pandas==1.3.5" working_directory: ~/arctic_3_8 docker: - image: cimg/python:3.8-node diff --git a/CHANGES.md b/CHANGES.md index 2a08c6ec..5c26f561 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -3,6 +3,7 @@ ### HEAD * Compatibility: allow pandas version newer than 1.0, less than 2.0 * Compatibility: allow numpy version newer than 1.18 + * Build: specify which version of python/numpy/pandas to test * Bugfix: resolve import error on pandas.Panel, Panel was removed in pandas 1.0 * Bugfix: fix np.float/np.int/np.book depreciations * Bugfix: fix numpy tostring() is deprecated. Use tobytes() instead.