diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4135cf8..658de93 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,36 +42,29 @@ jobs: - name: Test package run: uv run --with "clang<19" --group test pytest -# Commented for now -- msys2 Clang (v15) and the clang Python package (v14) are incompatible -# -# checks_windows: -# strategy: -# fail-fast: false -# matrix: -# python-version: -# - "3.8" -# - "3.9" -# runs-on: -# - windows-latest -# runs-on: ${{ matrix.runs-on }} -# name: Test • 🐍 ${{ matrix.python-version }} • ${{matrix.runs-on}} -# steps: -# - uses: actions/checkout@v7 -# - uses: actions/setup-python@v7 -# with: -# python-version: ${{ matrix.python-version }} -# -# - name: Install package -# run: python -m pip install -e. --group test -# -# - name: Install clang -# run: C:\msys64\usr\bin\pacman.exe -S clang64/mingw-w64-clang-x86_64-clang --noconfirm -# -# - name: Test package -# env: -# LIBCLANG_PATH: C:\msys64\clang64\bin\libclang.dll -# run: python -m pytest -n2 - + checks_windows: + strategy: + fail-fast: false + matrix: + python-version: + - "3.9" + - "3.14" + runs-on: windows-latest + name: Test • 🐍 ${{ matrix.python-version }} • windows-latest + steps: + - uses: actions/checkout@v7 + - uses: actions/setup-python@v7 + with: + python-version: ${{ matrix.python-version }} + allow-prereleases: true + - uses: astral-sh/setup-uv@v9.0.0 + + - name: Test package + env: + LIBCLANG_PATH: C:\Program Files\LLVM\bin\libclang.dll + run: uv run --with "clang<19" --group test pytest + + dist: runs-on: ubuntu-latest name: Build distribution diff --git a/pybind11_mkdoc/mkdoc_lib.py b/pybind11_mkdoc/mkdoc_lib.py index e706455..90bd583 100755 --- a/pybind11_mkdoc/mkdoc_lib.py +++ b/pybind11_mkdoc/mkdoc_lib.py @@ -17,6 +17,7 @@ from concurrent.futures import ThreadPoolExecutor from glob import glob from itertools import repeat +from pathlib import PurePosixPath from clang import cindex from clang.cindex import CursorKind @@ -577,6 +578,10 @@ def _extract_file(filename, parameters): return output +def _folder_version(d): + return [int(ver) for ver in re.findall(r"(?