diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index d6c7548..01be615 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -75,16 +75,12 @@ jobs: env: CIBW_BEFORE_ALL_LINUX: "curl https://sh.rustup.rs -sSf | sh -s -- -y" CIBW_ENVIRONMENT_LINUX: 'PATH="$PATH:$HOME/.cargo/bin"' - CIBW_ENVIRONMENT_MACOS: MACOSX_DEPLOYMENT_TARGET=10.9 + # CIBW_ENVIRONMENT_MACOS: MACOSX_DEPLOYMENT_TARGET=10.9 CIBW_MANYLINUX_X86_64_IMAGE: quay.io/pypa/manylinux2014_x86_64:latest CIBW_MANYLINUX_I686_IMAGE: quay.io/pypa/manylinux2014_i686:latest CIBW_SKIP: cp36-* pp* *win32 *musl* + CIBW_PRERELEASE_PYTHONS: True CIBW_BEFORE_BUILD: pip install -U setuptools-rust - # CIBW_TEST_REQUIRES: numpy scipy pandas requests - # CIBW_TEST_COMMAND: python -m unittest discover {project}/tests/ - # - uses: actions/upload-artifact@v4 - # with: - # path: ./wheelhouse/*.whl - name: Upload to PyPI run: twine upload ./wheelhouse/*.whl env: @@ -123,6 +119,7 @@ jobs: CIBW_MANYLINUX_X86_64_IMAGE: quay.io/pypa/manylinux2014_x86_64:latest CIBW_MANYLINUX_I686_IMAGE: quay.io/pypa/manylinux2014_i686:latest CIBW_SKIP: cp36-* pp* *win32 *musl* + CIBW_PRERELEASE_PYTHONS: True CIBW_BEFORE_BUILD: pip install -U setuptools-rust # CIBW_TEST_REQUIRES: numpy scipy pandas requests # CIBW_TEST_COMMAND: python -m unittest discover {project}/tests/ @@ -135,34 +132,35 @@ jobs: env: TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} TWINE_USERNAME: __token__ - - build-mac-arm-wheels: - name: Build wheels on macos for arm - runs-on: macos-latest - steps: - - uses: actions/checkout@v4 - - name: Build wheels - uses: joerick/cibuildwheel@v2.17.0 - env: - CIBW_BEFORE_ALL: rustup target add aarch64-apple-darwin - CIBW_ARCHS_MACOS: arm64 - CIBW_BEFORE_BUILD: pip install -U setuptools-rust - CIBW_ENVIRONMENT: CARGO_BUILD_TARGET="aarch64-apple-darwin" PYO3_CROSS_LIB_DIR="/Library/Frameworks/Python.framework/Versions/$(python -c 'import sys; print(str(sys.version_info[0])+"."+str(sys.version_info[1]))')/lib/python$(python -c 'import sys; print(str(sys.version_info[0])+"."+str(sys.version_info[1]))')" - # - uses: actions/upload-artifact@v4 - # with: - # path: ./wheelhouse/*.whl - - uses: actions/setup-python@v5 - name: Install Python - with: - python-version: '3.10' - - name: Install twine - run: | - python -m pip install twine - - name: Upload to PyPI - run: twine upload ./wheelhouse/*.whl - env: - TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} - TWINE_USERNAME: __token__ + ## mac arm64 build shipped with cibuildwhell@2.17.0. not extra builds for arm64 now + # build-mac-arm-wheels: + # name: Build wheels on macos for arm + # runs-on: macos-latest + # steps: + # - uses: actions/checkout@v4 + # - name: Build wheels + # uses: joerick/cibuildwheel@v2.17.0 + # env: + # CIBW_BEFORE_ALL: rustup target add aarch64-apple-darwin + # CIBW_ARCHS_MACOS: arm64 + # CIBW_PRERELEASE_PYTHONS: True + # CIBW_BEFORE_BUILD: pip install -U setuptools-rust + # CIBW_ENVIRONMENT: CARGO_BUILD_TARGET="aarch64-apple-darwin" PYO3_CROSS_LIB_DIR="/Library/Frameworks/Python.framework/Versions/$(python -c 'import sys; print(str(sys.version_info[0])+"."+str(sys.version_info[1]))')/lib/python$(python -c 'import sys; print(str(sys.version_info[0])+"."+str(sys.version_info[1]))')" + # # - uses: actions/upload-artifact@v4 + # # with: + # # path: ./wheelhouse/*.whl + # - uses: actions/setup-python@v5 + # name: Install Python + # with: + # python-version: '3.10' + # - name: Install twine + # run: | + # python -m pip install twine + # - name: Upload to PyPI + # run: twine upload ./wheelhouse/*.whl + # env: + # TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} + # TWINE_USERNAME: __token__ build-win32-wheels: name: Build wheels on win32 @@ -189,6 +187,7 @@ jobs: env: CIBW_ENVIRONMENT_MACOS: MACOSX_DEPLOYMENT_TARGET=10.9 CIBW_SKIP: cp36-* pp* *amd64 *musl* + CIBW_PRERELEASE_PYTHONS: True CIBW_BEFORE_BUILD: pip install -U setuptools-rust # CIBW_TEST_REQUIRES: numpy scipy pandas requests # CIBW_TEST_COMMAND: python -m unittest discover {project}/tests/