diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c235c2037..60f5de016 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,7 @@ permissions: jobs: build: - name: Build 3.${{ matrix.python }} ${{ matrix.os }} + name: Build ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: fail-fast: false @@ -26,10 +26,6 @@ jobs: ubuntu-24.04-arm, # https://github.com/actions/partner-runner-images/issues/37 macos-latest, ] - python: [ - 12, - 13, - ] steps: - name: Github context @@ -42,15 +38,19 @@ jobs: fetch-depth: 0 ref: ${{ github.event.pull_request.head.ref || github.ref }} - - name: Install UV + - name: Install UV 3.12 uses: astral-sh/setup-uv@v5.2 - id: setup-uv with: enable-cache: true prune-cache: false - python-version: 3.${{ matrix.python }} + python-version: 3.12 version: '0.5.24' - cache-suffix: 3.${{ matrix.python }} + cache-suffix: 3.12 + + - name: Setup python 3.13 + uses: actions/setup-python@v4 + with: + python-version: 3.13 - name: Fetch tags run: | @@ -60,12 +60,10 @@ jobs: # TODO: add cbuildwheel cache - name: Build wheel uses: pypa/cibuildwheel@v2.22.0 - env: - CIBW_BUILD: "*cp3${{ matrix.python }}*" - uses: actions/upload-artifact@v4 with: - name: wheels-${{ matrix.os }}-3.${{ matrix.python }} + name: wheels-${{ matrix.os }} path: ./wheelhouse/*.whl release: diff --git a/pyproject.toml b/pyproject.toml index 4a8ba3650..8e4beb0b9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -224,12 +224,14 @@ DEP004 = "pytest" [tool.deptry.package_module_name_map] python-levenshtein = ["Levenshtein"] PyGithub = ["github"] + [tool.cibuildwheel] -build-frontend = "build[uv]" +build-frontend = { name = "build[uv]", args = ["--no-build-isolation"] } skip = ["*i686*", "*musllinux*"] environment = { "HATCH_BUILD_HOOKS_ENABLE" = "true" } manylinux-x86_64-image = "quay.io/pypa/manylinux_2_34_x86_64" manylinux-aarch64-image = "quay.io/pypa/manylinux_2_34_aarch64" + [tool.cibuildwheel.linux] before-all = "curl -sSf https://sh.rustup.rs | sh -s -- -y" environment = { "PATH" = "$HOME/.cargo/bin:$PATH" }