add wheels

This commit is contained in:
James Turk 2020-05-21 15:41:40 -04:00
parent 4ab3004879
commit ced9b0f4b7
4 changed files with 39 additions and 0 deletions

1
.gitignore vendored
View File

@ -13,3 +13,4 @@ htmlcov/
_build/
.ipynb_checkpoints/
.cache
wheelhouse/

7
build-all-wheels.sh Executable file
View File

@ -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*

30
build-wheels.sh Executable file
View File

@ -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

View File

@ -11,6 +11,7 @@ Changelog
* fix metaphone bug with leading vowels and 'kn' pair, #123
* fix Python jaro_winkler bug #124
* fix Python 3.9 deprecation warning
* add manylinux wheels
0.7.2 - 5 June 2019
-----------------------