diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 84391b9..b411ddb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,11 +30,15 @@ jobs: platform_id: win_amd64 steps: - uses: actions/checkout@v4 + - name: Install uv + run: curl -LsSf https://astral.sh/uv/install.sh | sh + if: runner.os != 'Linux' - name: Build wheels - uses: pypa/cibuildwheel@v2.18 + uses: pypa/cibuildwheel@v2.19 env: CIBW_ARCHS: all CIBW_BUILD: cp${{ matrix.python }}-${{ matrix.platform_id }} + CIBW_BUILD_FRONTEND: 'build[uv]' - uses: actions/upload-artifact@v4 with: name: cibw-wheels-cp${{ matrix.python }}-${{ matrix.platform_id }}-${{ strategy.job-index }} @@ -45,14 +49,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - - uses: actions/setup-python@v5 - name: Install Python - with: - python-version: '3.10' - - run: python -m pip install build - name: Build sdist - run: python -m build --sdist + run: pipx run uv tool run --with build[uv] --from build python -m build --installer uv - uses: actions/upload-artifact@v4 with: diff --git a/.gitignore b/.gitignore index db778ca..c888b5f 100644 --- a/.gitignore +++ b/.gitignore @@ -108,3 +108,4 @@ testfiles*/ dps.cpp _version.py +.uv/ diff --git a/pyproject.toml b/pyproject.toml index 591d544..ee7539f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -75,7 +75,6 @@ fallback_version = "Unknown" test-command = "datasetbuilder -h" build = ["cp37-*", "cp38-*", "cp39-*", "cp310-*", "cp311-*"] skip = ["*-win32", "*-manylinux_i686", "*-musllinux*"] -before-test = ["pip install replace-pip-with-uv-pip"] [tool.cibuildwheel.linux] environment-pass = ["CIBW_BUILD"]