Skip to content

Commit e97f496

Browse files
authored
Update wheels.yml
1 parent 214a4f6 commit e97f496

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

.github/workflows/wheels.yml

+15-7
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,16 @@ jobs:
6969
boost_install_dir: ${{ matrix.boost_install_dir }}
7070

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

94-
- uses: actions/upload-artifact@v2
95-
name: Upload wheels
94+
- name: Set-up python 3.10 for upload
95+
uses: actions/setup-python@v5
9696
with:
97-
path: ./wheelhouse/*.whl
97+
python-version: "3.10"
98+
- name: Publish
99+
env:
100+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
101+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
102+
run: |
103+
pip install twine
104+
twine check ./wheelhouse/*.whl
105+
twine upload --skip-existing ./wheelhouse/*.whl

0 commit comments

Comments
 (0)