Update wheels.yml

- Pre-install poetry
- Remove redundant build steps (now handled by build.py)
- Add Python 3.10 to builds
This commit is contained in:
bostonrwalker
2022-01-12 14:51:26 -05:00
committed by GitHub
parent 601032c42b
commit 6070370193

View File

@@ -24,6 +24,9 @@ jobs:
run: sudo apt-get install swig
- uses: actions/setup-python@v2
- name: Install poetry
run: python -m pip install poetry==1.1.12
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==1.10.0
@@ -31,15 +34,8 @@ jobs:
- name: Build wheels
env:
CIBW_ARCHS: auto
CIBW_BUILD: cp35-* cp36-* cp37-* cp38-* cp39-*
CIBW_BEFORE_BUILD: >
ln -s $(pwd) pkg/pypi/native;
cp -f src/bindings/python/*.py pkg/pypi/libzt/;
cd pkg/pypi;
python setup.py build_clib
run: |
swig -c++ -python -o src/bindings/python/zt_wrap.cxx -Iinclude src/bindings/python/zt.i
python -m cibuildwheel pkg/pypi --output-dir wheelhouse
CIBW_BUILD: cp35-* cp36-* cp37-* cp38-* cp39-* cp310-*
run: python -m cibuildwheel pkg/pypi --output-dir wheelhouse
- uses: actions/upload-artifact@v2
with: