Skip to content

Bump version number to 0.6.7, change wheel build to use uv #50

Bump version number to 0.6.7, change wheel build to use uv

Bump version number to 0.6.7, change wheel build to use uv #50

Workflow file for this run

name: Build python wheels
on:
push:
tags: "v*"
pull_request:
tags: "v*"
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
pyver: [cp39, cp310, cp311, cp312]
steps:
- name: Checkout repos
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Build wheels
uses: pypa/cibuildwheel@v2.22.0
env:
CIBW_BUILD: ${{matrix.pyver}}-*
CIBW_ARCHS_LINUX: auto64
CIBW_ARCHS_MACOS: auto64 universal2
CIBW_ARCHS_WINDOWS: auto64
CIBW_BUILD_FRONTEND: "build[uv]"
CIBW_TEST_SKIP: ${{matrix.pyver}}-*
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
path: ./wheelhouse/*.whl
name: occpy-${{ matrix.os }}-${{ matrix.pyver }}
upload_all:
runs-on: ubuntu-latest
needs: build_wheels
environment:
name: pypi
url: https://pypi.org/p/occpy/
permissions:
id-token: write
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/download-artifact@v4
with:
path: dist
pattern: occpy-*
merge-multiple: true
- uses: pypa/gh-action-pypi-publish@release/v1