Skip to content

Commit

Permalink
Update wheels.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
matteocao authored May 30, 2024
1 parent 214a4f6 commit e97f496
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,16 @@ jobs:
boost_install_dir: ${{ matrix.boost_install_dir }}

- name: Build wheels
uses: pypa/cibuildwheel@v2.9.0
uses: pypa/cibuildwheel@v2.18.1
env:
# Specify which Python versions to build wheels
# https://cibuildwheel.readthedocs.io/en/stable/options/#build-skip
CIBW_BUILD: "cp38-* cp39-* cp310-* cp311-*"
# Skip 32 bit architectures, musllinux, and i686, and macOS x86_64 wheels for CP3.8 -- CP3.11
CIBW_SKIP: "*-win32 *-musllinux_x86_64 *_i686 cp38-macosx_x86_64 cp39-macosx_x86_64 cp310-macosx_x86_64 cp311-macosx_x86_64"
CIBW_BEFORE_BUILD_WINDOWS: python -m pip install cmake && python -m pip install --upgrade pip setuptools && sed -i $'s/\r$//' README.rst && python -m pip install delvewheel
CIBW_BEFORE_BUILD_LINUX: python -m pip install cmake && python -m pip install --upgrade pip setuptools
CIBW_BEFORE_BUILD_MACOS: python -m pip install cmake && python -m pip install --upgrade pip setuptools
CIBW_BEFORE_BUILD_WINDOWS: python -m pip install --upgrade pip setuptools && sed -i $'s/\r$//' README.rst && python -m pip install delvewheel
CIBW_BEFORE_BUILD_LINUX: python -m pip install --upgrade pip setuptools
CIBW_BEFORE_BUILD_MACOS: python -m pip install --upgrade pip setuptools
CIBW_TEST_COMMAND: python -m pytest --pyargs gtda
# nbformat is needed by plotly: https://github.com/plotly/plotly.py/issues/2159
CIBW_TEST_REQUIRES: pytest hypothesis pandas nbformat
Expand All @@ -91,7 +91,15 @@ jobs:
# Should generate universal2 wheels for CP3.8 -- CP3.11
CIBW_ARCHS_MACOS: x86_64 universal2

- uses: actions/upload-artifact@v2
name: Upload wheels
- name: Set-up python 3.10 for upload
uses: actions/setup-python@v5
with:
path: ./wheelhouse/*.whl
python-version: "3.10"
- name: Publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
pip install twine
twine check ./wheelhouse/*.whl
twine upload --skip-existing ./wheelhouse/*.whl

0 comments on commit e97f496

Please sign in to comment.