From 120054449e39b6173d9247d42ef5cae9bdf12d42 Mon Sep 17 00:00:00 2001 From: tqtg <tuantq.vnu@gmail.com> Date: Mon, 12 Jul 2021 14:42:11 +0800 Subject: [PATCH] numpy<1.20 for CI builds to avoid incompatibility --- .appveyor.yml | 2 +- .circleci/config.yml | 2 +- .github/workflows/python-package.yml | 2 +- .github/workflows/python-publish.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index 794a9d97..72aa6bda 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -25,7 +25,7 @@ install: - set PATH=%MINICONDA%;%MINICONDA%\\Scripts;%PATH% - conda config --set always_yes yes --set changeps1 no - conda info -a - - conda create -q -n test-environment python=%PYTHON_VERSION% numpy scipy Cython + - conda create -q -n test-environment python=%PYTHON_VERSION% numpy<1.20 scipy Cython - activate test-environment - python -m pip install --upgrade pip - pip install wheel twine pytest diff --git a/.circleci/config.yml b/.circleci/config.yml index 2e17815a..fc50702b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -18,7 +18,7 @@ jobs: no_output_timeout: 30m command: | sudo pip install --upgrade pip - sudo pip install --only-binary=numpy,scipy numpy scipy Cython pytest pytest-cov codecov + sudo pip install --only-binary=numpy,scipy numpy<1.20 scipy Cython pytest pytest-cov codecov sudo pip install -e .[tests] - save_cache: key: deps9-{{ .Branch }} diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index e084c1e7..59531d2f 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -29,7 +29,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install --only-binary=numpy,scipy numpy scipy Cython pytest pytest-cov codecov flake8 + python -m pip install --only-binary=numpy,scipy numpy<1.20 scipy Cython pytest pytest-cov codecov flake8 python -m pip install -e .[tests] if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Lint with flake8 diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 0a5aa952..da509fad 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -80,7 +80,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install --only-binary=numpy,scipy numpy scipy Cython wheel + python -m pip install --only-binary=numpy,scipy numpy<1.20 scipy Cython wheel - name: Build source tar file run: python setup.py sdist -- GitLab