diff --git a/.github/workflows/pip.yml b/.github/workflows/pip.yml index e23d3b5..e6aae51 100644 --- a/.github/workflows/pip.yml +++ b/.github/workflows/pip.yml @@ -22,9 +22,9 @@ jobs: runs-on: ${{ matrix.platform }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - - uses: actions/setup-python@v5 + - uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} @@ -51,7 +51,7 @@ jobs: mingw-w64-x86_64-python-pip mingw-w64-x86_64-python-wheel - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Install pybind11 # This is required because --no-build-isolation disable dependences diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index d5293cb..c0502ea 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -19,7 +19,7 @@ jobs: name: Build SDist runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Build SDist run: pipx run build --sdist @@ -27,7 +27,7 @@ jobs: - name: Check metadata run: pipx run twine check dist/* - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v7 with: name: cibw-sdist path: dist/*.tar.gz @@ -39,21 +39,21 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, windows-latest, macos-13] + os: [ubuntu-latest, windows-latest, macos-latest, macos-26-intel, ubuntu-24.04-arm, windows-11-arm] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - - uses: pypa/cibuildwheel@v3.1 - env: - CIBW_ARCHS_MACOS: auto universal2 + - uses: astral-sh/setup-uv@v8.1.0 + + - uses: pypa/cibuildwheel@v3.4 - name: Verify clean directory run: git diff --exit-code shell: bash - name: Upload wheels - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: cibw-wheels-${{ matrix.os }} path: wheelhouse/*.whl @@ -66,11 +66,11 @@ jobs: if: github.event_name == 'release' && github.event.action == 'published' steps: - - uses: actions/setup-python@v5 + - uses: actions/setup-python@v6 with: python-version: "3.x" - - uses: actions/download-artifact@v5 + - uses: actions/download-artifact@v8 with: pattern: cibw-* path: dist diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b3b1b38..9b5380d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,7 @@ ci: repos: # Standard hooks - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: check-added-large-files - id: check-case-conflict @@ -35,15 +35,15 @@ repos: # Lints code - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.12.7" + rev: "v0.15.15" hooks: - - id: ruff - args: ["--fix", "--show-fixes"] + - id: ruff-check + args: ["--fix"] - id: ruff-format # Changes tabs to spaces - repo: https://github.com/Lucas-C/pre-commit-hooks - rev: v1.5.5 + rev: v1.5.6 hooks: - id: remove-tabs diff --git a/README.md b/README.md index 92522d6..541bae3 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ python_example [actions-wheels-badge]: https://github.com/pybind/python_example/workflows/Wheels/badge.svg An example project built with [pybind11](https://github.com/pybind/pybind11). -This requires Python 3.7+; for older versions of Python, check the commit +This requires Python 3.9+; for older versions of Python, check the commit history. Installation diff --git a/pyproject.toml b/pyproject.toml index 0c7cc8e..d4d568e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,10 +8,12 @@ build-backend = "setuptools.build_meta" [tool.cibuildwheel] test-command = "python {project}/tests/test.py" -test-skip = "*universal2:arm64" +enable = ["pypy", "graalpy"] +build-frontend = "build[uv]" [tool.ruff] +show-fixes = true target-version = "py39" [tool.ruff.lint]