add wheels
This commit is contained in:
parent
4ab3004879
commit
ced9b0f4b7
|
@ -13,3 +13,4 @@ htmlcov/
|
||||||
_build/
|
_build/
|
||||||
.ipynb_checkpoints/
|
.ipynb_checkpoints/
|
||||||
.cache
|
.cache
|
||||||
|
wheelhouse/
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -ex
|
||||||
|
export DOCKER_IMAGE=quay.io/pypa/manylinux2014_x86_64
|
||||||
|
export PLAT=manylinux2014_x86_64
|
||||||
|
docker run --rm -e PLAT=$PLAT -v `pwd`:/io $DOCKER_IMAGE /io/build-wheels.sh
|
||||||
|
|
||||||
|
twine upload wheelhouse/*manylinux*
|
|
@ -0,0 +1,30 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# https://github.com/pypa/python-manylinux-demo/blob/master/travis/build-wheels.sh
|
||||||
|
|
||||||
|
function repair_wheel {
|
||||||
|
wheel="$1"
|
||||||
|
if ! auditwheel show "$wheel"; then
|
||||||
|
echo "Skipping non-platform wheel $wheel"
|
||||||
|
else
|
||||||
|
auditwheel repair "$wheel" --plat "$PLAT" -w /io/wheelhouse/
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# compile wheels
|
||||||
|
for PYBIN in /opt/python/cp3*/bin; do
|
||||||
|
"${PYBIN}/pip" install /io/
|
||||||
|
"${PYBIN}/pip" wheel /io/ --no-deps -w /io/wheelhouse/
|
||||||
|
done
|
||||||
|
|
||||||
|
# repair wheels
|
||||||
|
for whl in /io/wheelhouse/*.whl; do
|
||||||
|
repair_wheel "$whl"
|
||||||
|
done
|
||||||
|
|
||||||
|
# copy testdata somewhere and test that the wheels work
|
||||||
|
cp -r /io/testdata/ $HOME
|
||||||
|
for PYBIN in /opt/python/cp3*/bin; do
|
||||||
|
"${PYBIN}/pip" install pytest
|
||||||
|
"${PYBIN}/pip" install jellyfish --no-index -f /io/wheelhouse
|
||||||
|
(cd "$HOME"; "${PYBIN}/pytest" --pyargs jellyfish.test)
|
||||||
|
done
|
|
@ -11,6 +11,7 @@ Changelog
|
||||||
* fix metaphone bug with leading vowels and 'kn' pair, #123
|
* fix metaphone bug with leading vowels and 'kn' pair, #123
|
||||||
* fix Python jaro_winkler bug #124
|
* fix Python jaro_winkler bug #124
|
||||||
* fix Python 3.9 deprecation warning
|
* fix Python 3.9 deprecation warning
|
||||||
|
* add manylinux wheels
|
||||||
|
|
||||||
0.7.2 - 5 June 2019
|
0.7.2 - 5 June 2019
|
||||||
-----------------------
|
-----------------------
|
||||||
|
|
Loading…
Reference in New Issue