From fd769b94c3fceb57f812931d82e17e9171594d46 Mon Sep 17 00:00:00 2001 From: Tian Gao Date: Thu, 10 Oct 2024 00:27:47 -0400 Subject: [PATCH] Update release/wheels --- .github/workflows/release.yml | 26 +++++++++++++++----------- .github/workflows/wheels.yml | 2 +- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a1f3b97..3d8ad4d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,7 +11,6 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: [39, 310, 311, 312, 313] manylinux-image: [manylinux2014] arch: [auto, aarch64] @@ -25,7 +24,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: 3.9 + python-version: 3.11 - name: Install dependencies run: | @@ -38,11 +37,12 @@ jobs: - name: Build wheels run: python -m cibuildwheel --output-dir wheelhouse env: - CIBW_BUILD: 'cp${{ matrix.python-version }}-*' + CIBW_BUILD: cp39-* cp310-* cp311-* cp312-* cp313-* cp313t-* CIBW_SKIP: '*musllinux*' CIBW_ARCHS: ${{ matrix.arch }} CIBW_MANYLINUX_*_IMAGE: ${{ matrix.manylinux-image }} CIBW_MANYLINUX_I686_IMAGE: ${{ matrix.manylinux-image }} + CIBW_FREE_THREADED_SUPPORT: 1 - name: Publish wheels to PyPI Unix continue-on-error: true @@ -58,12 +58,6 @@ jobs: strategy: matrix: os: [macos-latest, macos-13, windows-latest] - python-version: [39, 310, 311, 312, 313] - exclude: - - python-version: '38' - os: macos-latest - - python-version: '39' - os: macos-latest steps: - uses: actions/checkout@v4 @@ -82,10 +76,20 @@ jobs: run: python -m pip install cibuildwheel -U - name: Build wheels + if: matrix.os == 'macos-latest' run: python -m cibuildwheel --output-dir wheelhouse env: - CIBW_BUILD: 'cp${{ matrix.python-version }}-*' + CIBW_BUILD: cp310-* cp311-* cp312-* cp313-* cp313t-* CIBW_ENVIRONMENT_MACOS: MACOSX_DEPLOYMENT_TARGET=10.15 + CIBW_FREE_THREADED_SUPPORT: 1 + + - name: Build wheels + if: matrix.os != 'macos-latest' + run: python -m cibuildwheel --output-dir wheelhouse + env: + CIBW_BUILD: cp39-* cp310-* cp311-* cp312-* cp313-* cp313t-* + CIBW_ENVIRONMENT_MACOS: MACOSX_DEPLOYMENT_TARGET=11.0 + CIBW_FREE_THREADED_SUPPORT: 1 - name: Publish wheels to PyPI Unix if: matrix.os != 'windows-latest' @@ -112,7 +116,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: 3.9 + python-version: 3.11 - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index ba563cc..8e01569 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -31,7 +31,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: 3.9 + python-version: 3.11 - name: Install dependencies run: | python -m pip install --upgrade pip