Patch v1.4.3 #370
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PyPI pkg | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| push: | |
| branches: | |
| - "*" | |
| tags: | |
| - "v**" | |
| release: | |
| types: [published] | |
| env: | |
| CIBW_ARCHS_MACOS: "x86_64 arm64" | |
| CIBW_ARCHS_WINDOWS: "AMD64" | |
| CIBW_SKIP: "cp38-*" | |
| CIBW_BUILD_VERBOSITY: 1 | |
| jobs: | |
| # -------------------------------------------------------------------------- | |
| # Build wheels for all OS × Python versions | |
| # -------------------------------------------------------------------------- | |
| build_wheels: | |
| name: Build wheels (${{ matrix.os }} / Python ${{ matrix.python-version }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| # ---------------- Ubuntu ---------------- | |
| - os: ubuntu-latest | |
| python-version: "3.9" | |
| tag: cp39 | |
| - os: ubuntu-latest | |
| python-version: "3.10" | |
| tag: cp310 | |
| - os: ubuntu-latest | |
| python-version: "3.11" | |
| tag: cp311 | |
| - os: ubuntu-latest | |
| python-version: "3.12" | |
| tag: cp312 | |
| - os: ubuntu-latest | |
| python-version: "3.13" | |
| tag: cp313 | |
| - os: ubuntu-latest | |
| python-version: "3.14" | |
| tag: cp314 | |
| # ---------------- Windows ---------------- | |
| - os: windows-latest | |
| python-version: "3.9" | |
| tag: cp39 | |
| - os: windows-latest | |
| python-version: "3.10" | |
| tag: cp310 | |
| - os: windows-latest | |
| python-version: "3.11" | |
| tag: cp311 | |
| - os: windows-latest | |
| python-version: "3.12" | |
| tag: cp312 | |
| - os: windows-latest | |
| python-version: "3.13" | |
| tag: cp313 | |
| - os: windows-latest | |
| python-version: "3.14" | |
| tag: cp314 | |
| # ---------------- macOS ---------------- | |
| - os: macos-latest | |
| python-version: "3.9" | |
| tag: cp39 | |
| - os: macos-latest | |
| python-version: "3.10" | |
| tag: cp310 | |
| - os: macos-latest | |
| python-version: "3.11" | |
| tag: cp311 | |
| - os: macos-latest | |
| python-version: "3.12" | |
| tag: cp312 | |
| - os: macos-latest | |
| python-version: "3.13" | |
| tag: cp313 | |
| - os: macos-latest | |
| python-version: "3.14" | |
| tag: cp314 | |
| env: | |
| CIBW_BUILD: "${{ matrix.tag }}-*" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build wheels | |
| uses: pypa/cibuildwheel@v3.3.0 | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: wheels-${{ matrix.os }}-py${{ matrix.python-version }} | |
| path: wheelhouse/*.whl | |
| if-no-files-found: error | |
| # -------------------------------------------------------------------------- | |
| # Build sdist (once) | |
| # -------------------------------------------------------------------------- | |
| build_sdist: | |
| name: Build source distribution | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build sdist | |
| run: pipx run build --sdist | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: sdist | |
| path: dist/*.tar.gz | |
| # -------------------------------------------------------------------------- | |
| # Upload all wheels + sdist to PyPI (only on version tags) | |
| # -------------------------------------------------------------------------- | |
| upload_pypi: | |
| name: Upload to PyPI | |
| needs: [build_wheels, build_sdist] | |
| runs-on: ubuntu-latest | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| environment: pypi | |
| permissions: | |
| id-token: write | |
| steps: | |
| - name: Download all artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| path: dist | |
| merge-multiple: true | |
| - name: Publish to PyPI | |
| uses: pypa/gh-action-pypi-publish@release/v1 |