You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by la...@apache.org on 2020/07/01 16:59:52 UTC
[incubator-mxnet] branch v1.x updated: Add constraint to numpy
version to <1.19.0 in CI (#18651)
This is an automated email from the ASF dual-hosted git repository.
lausen pushed a commit to branch v1.x
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git
The following commit(s) were added to refs/heads/v1.x by this push:
new 16144ff8 Add constraint to numpy version to <1.19.0 in CI (#18651)
16144ff8 is described below
commit 16144ff885c75810d21135e874cb96503b1714d3
Author: ciyong <ci...@intel.com>
AuthorDate: Thu Jul 2 00:58:45 2020 +0800
Add constraint to numpy version to <1.19.0 in CI (#18651)
---
ci/docker/install/centos7_python.sh | 3 ++-
ci/docker/install/requirements | 6 +++---
ci/travis/install.sh | 3 ++-
tests/requirements.txt | 2 +-
4 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/ci/docker/install/centos7_python.sh b/ci/docker/install/centos7_python.sh
index 796387e..1bbcf5c 100755
--- a/ci/docker/install/centos7_python.sh
+++ b/ci/docker/install/centos7_python.sh
@@ -29,4 +29,5 @@ yum -y install python36u
# Install PIP
curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
python3.6 get-pip.py
-pip3 install nose pylint numpy nose-timer requests h5py scipy==1.2.3
+# Restrict numpy version to < 1.19.0 due to https://github.com/apache/incubator-mxnet/issues/18600
+pip3 install nose pylint 'numpy>1.16.0,<1.19.0' nose-timer requests h5py scipy==1.2.3
diff --git a/ci/docker/install/requirements b/ci/docker/install/requirements
index fee6a8b..9d04e4b 100644
--- a/ci/docker/install/requirements
+++ b/ci/docker/install/requirements
@@ -26,9 +26,9 @@ h5py==2.8.0rc1
mock==2.0.0
nose==1.3.7
nose-timer==0.7.3
-numpy>1.16.0,<2.0.0
-pylint==2.3.1 # pylint and astroid need to be aligned
-astroid==2.3.3 # pylint and astroid need to be aligned
+numpy>1.16.0,<1.19.0 # Restrict numpy version to < 1.19.0 due to https://github.com/apache/incubator-mxnet/issues/18600
+pylint==2.3.1 # pylint and astroid need to be aligned
+astroid==2.3.3 # pylint and astroid need to be aligned
requests<2.19.0,>=2.18.4
scipy==1.2.1
six==1.11.0
diff --git a/ci/travis/install.sh b/ci/travis/install.sh
index 6412849..e1f7c2d 100644
--- a/ci/travis/install.sh
+++ b/ci/travis/install.sh
@@ -22,5 +22,6 @@ export HOMEBREW_NO_AUTO_UPDATE=1
if [ ${TRAVIS_OS_NAME} == "osx" ]; then
brew install opencv
- python -m pip install --user nose numpy cython scipy requests mock nose-timer nose-exclude mxnet-to-coreml
+ # Restrict numpy version to < 1.19.0 due to https://github.com/apache/incubator-mxnet/issues/18600
+ python -m pip install --user nose 'numpy>1.16.0,<1.19.0' cython scipy requests mock nose-timer nose-exclude mxnet-to-coreml
fi
diff --git a/tests/requirements.txt b/tests/requirements.txt
index e16b764..dde62c5 100644
--- a/tests/requirements.txt
+++ b/tests/requirements.txt
@@ -4,5 +4,5 @@ mock
nose
nose-timer
ipython
-numpy
+numpy>1.16.0,<1.19.0 # Restrict numpy version to < 1.19.0 due to https://github.com/apache/incubator-mxnet/issues/18600
scipy