From 3d5d5a190cef644b0852cf8c27eb419c200dbd00 Mon Sep 17 00:00:00 2001 From: Gertjan van Zwieten Date: Mon, 25 Oct 2021 22:56:18 +0200 Subject: [PATCH] bump minimal numpy version to 1.17 This patch bumps the minimum required Numpy version from 1.16 to 1.17, which is the first version that enables Numpy's array function protocol by default. While Numpy 1.16 does support this protocol, it requires the NUMPY_EXPERIMENTAL_ARRAY_FUNCTION environment to be set, which is more effort that it is worth to support an old version. Additionally, this patch changes the testing matrix by lowering the Python version for which Numpy 1.17 is tested from 3.8 to 3.6, which is the highest version for which pypi hosts precompiled wheels. --- .github/workflows/test.yaml | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 940bec4f4..e0df5440f 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -55,7 +55,7 @@ jobs: # nprocs - {os: ubuntu-latest , python-version: 3.9, matrix-backend: numpy, nprocs: 2, numpy-version: latest} # numpy-version - - {os: ubuntu-latest , python-version: 3.8, matrix-backend: numpy, nprocs: 1, numpy-version: 1.16 } + - {os: ubuntu-latest , python-version: 3.6, matrix-backend: numpy, nprocs: 1, numpy-version: 1.17 } # tensorial - {os: ubuntu-latest , python-version: 3.9, matrix-backend: numpy, nprocs: 1, numpy-version: latest, tensorial: test} fail-fast: false diff --git a/setup.py b/setup.py index f9a2feaa4..4ee181f3f 100644 --- a/setup.py +++ b/setup.py @@ -35,7 +35,7 @@ long_description = long_description, license = 'MIT', python_requires = '>=3.5', - install_requires = ['numpy>=1.16', 'treelog>=1.0b5', 'stringly'], + install_requires = ['numpy>=1.17', 'treelog>=1.0b5', 'stringly'], extras_require = dict( docs=['Sphinx>=1.6','scipy>=0.13','matplotlib>=1.3'], matrix_scipy=['scipy>=0.13'],