diff --git a/.cirrus.yml b/.cirrus.yml index 09ffa13..6e37721 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -1,7 +1,7 @@ build_and_store_wheels: &BUILD_AND_STORE_WHEELS only_if: $CIRRUS_BRANCH == 'main' || $CIRRUS_TAG != '' || $CIRRUS_PR != '' install_cibuildwheel_script: - - python -m pip install cibuildwheel==2.17.0 + - python -m pip install cibuildwheel[uv]==2.19.0 run_cibuildwheel_script: - cibuildwheel wheels_artifacts: diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 9bfe900..783b7da 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -5,6 +5,9 @@ on: release: types: - published + pull_request: + paths: + - .github/workflows/wheels.yml jobs: make_sdist: @@ -36,6 +39,8 @@ jobs: with: fetch-depth: 0 + - uses: yezz123/setup-uv@v4 + - uses: pypa/cibuildwheel@v2.19.0 - name: Upload wheels diff --git a/pyproject.toml b/pyproject.toml index 0e2e169..18dabd7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -71,6 +71,7 @@ write_to = "src/pylibmagic/_version.py" [tool.cibuildwheel] +build-frontend = "build[uv]" test-extras = ["test"] test-command = "pytest {project}/tests" archs = ["auto64"]