Add GitHub workflow script to build Python wheels. Update PyPI package
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
PYBIN=python3
|
||||
PYBIN=python3.9
|
||||
#PYBIN=/opt/python/cp39-cp39/bin/python3
|
||||
|
||||
# Build the extension module
|
||||
@@ -29,7 +29,7 @@ clean()
|
||||
find . -name '*.so' -type f -delete
|
||||
find . -name '*.pyc' -type f -delete
|
||||
find . -name '__pycache__' -type d -delete
|
||||
rm -rf libzt/prototype.py
|
||||
rm -rf libzt/sockets.py
|
||||
rm -rf libzt/libzt.py
|
||||
rm -rf src ext build dist native
|
||||
rm -rf libzt.egg-info
|
||||
@@ -38,9 +38,24 @@ clean()
|
||||
|
||||
manylinux()
|
||||
{
|
||||
CONTAINER="quay.io/pypa/manylinux_2_24_aarch64"
|
||||
CONTAINER="quay.io/pypa/manylinux_2_24_x86_64"
|
||||
docker pull ${CONTAINER}
|
||||
docker run --rm -it --entrypoint bash -v $(pwd)/../../:/media/libzt ${CONTAINER}
|
||||
}
|
||||
|
||||
"$@"
|
||||
cycle()
|
||||
{
|
||||
#clean
|
||||
#swig -c++ -python -o ../../src/bindings/python/zt_wrap.cpp -I../../include ../../src/bindings/python/zt.i
|
||||
#wheel
|
||||
#pip3 uninstall -y libzt
|
||||
#pip3 install dist/libzt-1.3.3-cp39-cp39-macosx_11_0_x86_64.whl
|
||||
|
||||
}
|
||||
|
||||
update-version()
|
||||
{
|
||||
echo "__version__ = \"$(git describe)\"" > libzt/version.py
|
||||
}
|
||||
|
||||
"$@"
|
||||
|
||||
Reference in New Issue
Block a user