@@ -69,16 +69,16 @@ jobs:
69
69
boost_install_dir : ${{ matrix.boost_install_dir }}
70
70
71
71
- name : Build wheels
72
- uses : pypa/cibuildwheel@v2.9.0
72
+ uses : pypa/cibuildwheel@v2.18.1
73
73
env :
74
74
# Specify which Python versions to build wheels
75
75
# https://cibuildwheel.readthedocs.io/en/stable/options/#build-skip
76
76
CIBW_BUILD : " cp38-* cp39-* cp310-* cp311-*"
77
77
# Skip 32 bit architectures, musllinux, and i686, and macOS x86_64 wheels for CP3.8 -- CP3.11
78
78
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
82
82
CIBW_TEST_COMMAND : python -m pytest --pyargs gtda
83
83
# nbformat is needed by plotly: https://github.com/plotly/plotly.py/issues/2159
84
84
CIBW_TEST_REQUIRES : pytest hypothesis pandas nbformat
91
91
# Should generate universal2 wheels for CP3.8 -- CP3.11
92
92
CIBW_ARCHS_MACOS : x86_64 universal2
93
93
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
96
96
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