Skip to content

Commit

Permalink
Merge pull request #57 from kazuki/fix-numpy-requirements
Browse files Browse the repository at this point in the history
Fixed numpy version requirements
  • Loading branch information
shiodat committed Jul 30, 2019
2 parents e4a8a83 + d9b2c46 commit abedbe0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ install:
script:
- if [ "$DIST" == "centos" ]; then
if [ $VERSION -eq 6 ]; then
docker exec -t test /usr/bin/scl enable python27 -- bash -ic "pip install -e . && pip install scipy && python ./setup.py test";
docker exec -t test /usr/bin/scl enable python27 -- bash -ic "pip install -r requirements.txt && pip install -e . && pip install scipy && python ./setup.py test";
else
docker exec -t test bash -ic "pip install -e . && pip install scipy && python ./setup.py test";
docker exec -t test bash -ic "pip install -r requirements.txt && pip install -e . && pip install scipy && python ./setup.py test";
fi;
elif [ "$DIST" == "ubuntu" ]; then
docker exec -t test bash -ic "source /opt/jubatus/profile; pip install -e . && pip install scipy && python ./setup.py test";
docker exec -t test bash -ic "source /opt/jubatus/profile; pip install -r requirements.txt && pip install -e . && pip install scipy && python ./setup.py test";
elif [ "$DIST" == "quay.io/pypa/manylinux2010_x86_64" ]; then
docker exec -t test bash build-wheels.sh build_wheels;
fi
7 changes: 4 additions & 3 deletions build-wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function build_wheels() {
./waf install
cd /io

for PYBIN in /opt/python/*m/bin; do
for PYBIN in /opt/python/*/bin; do
"${PYBIN}/pip" install cython
"${PYBIN}/pip" install -r /io/requirements.txt
"${PYBIN}/pip" wheel /io/ -w wheelhouse/
Expand All @@ -29,11 +29,12 @@ function build_wheels() {

/opt/python/cp37-cp37m/bin/python ./setup.py sdist

for PYBIN in /opt/python/*m/bin; do
cd /io/tests
for PYBIN in /opt/python/*/bin; do
V=${PYBIN%/bin}
V=${V#/opt/python/}
"${PYBIN}/pip" install /io/wheelhouse/embedded_jubatus-*-${V}-manylinux2010_x86_64.whl scipy
"${PYBIN}/python" ./setup.py test
"${PYBIN}/python" -m unittest discover -v
done
}

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
numpy>=1.14,<1.17.0 # numpy-1.17.0 dropped python2 supports
numpy>=1.16
jubatus>=1.0.2

0 comments on commit abedbe0

Please sign in to comment.