From 729dc7c9f47d1776c8dbc21786a0244ade547b69 Mon Sep 17 00:00:00 2001 From: "linji.xue" Date: Fri, 23 Sep 2022 22:58:24 +0800 Subject: [PATCH] build: remove the requirement limitation "numpy <= 1.20.3" PR Closed: https://github.com/Graviti-AI/tensorbay-python-sdk/pull/1265 --- .github/workflows/unit_test.yaml | 2 +- requirements.txt | 3 +-- requirements_test.txt | 2 ++ setup.cfg | 3 +-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/unit_test.yaml b/.github/workflows/unit_test.yaml index 36af07cc3..c98a34478 100644 --- a/.github/workflows/unit_test.yaml +++ b/.github/workflows/unit_test.yaml @@ -49,8 +49,8 @@ jobs: - name: Install dependencies run: | - pip install -r requirements.txt pip install -r requirements_test.txt + pip install -r requirements.txt - name: Run pytest run: pytest tensorbay diff --git a/requirements.txt b/requirements.txt index c238426d3..4836992be 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,8 +4,7 @@ click >= 7.0.0 filetype >= 1.0.0 -numpy >= 1.20.0, <= 1.20.3; python_version >= '3.7' -numpy >= 1.16.0; python_version < '3.7' +numpy >= 1.16.0 numpy-quaternion >= 2021.3.17.16.51.43, <= 2021.11.4.15.26.3 requests >= 2.4.2 requests_toolbelt >= 0.3.0 diff --git a/requirements_test.txt b/requirements_test.txt index 2a29fc17e..48feebed6 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -6,3 +6,5 @@ pytest == 6.2.2 pytest-cov == 2.11.1 pytest-mock == 3.5.1 coveralls == 2.2 + +numpy <= 1.20.3 diff --git a/setup.cfg b/setup.cfg index 0b096536e..125dd9d15 100644 --- a/setup.cfg +++ b/setup.cfg @@ -37,8 +37,7 @@ python_requires = >=3.6 install_requires = click >= 7.0.0 filetype >= 1.0.0 - numpy >= 1.20.0, <= 1.20.3; python_version >= '3.7' - numpy >= 1.16.0; python_version < '3.7' + numpy >= 1.16.0 numpy-quaternion >= 2021.3.17.16.51.43, <= 2021.11.4.15.26.3 requests >= 2.4.2 requests_toolbelt >= 0.3.0