From efcf6d252c111adc2f8369067fd3a4d675482eb2 Mon Sep 17 00:00:00 2001 From: "riseproject-dev[bot]" <330740410+riseproject-dev[bot]@users.noreply.github.com> Date: Thu, 22 Oct 2026 12:09:51 +0000 Subject: [PATCH 1/3] pymupdf: Add version 2.0 Signed-off-by: riseproject-dev[bot] <330740410+riseproject-dev[bot]@users.noreply.github.com> --- docs/packages/pymupdf.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/packages/pymupdf.yaml b/docs/packages/pymupdf.yaml index dd4b1f64ef93..4802476b7c3c 100644 --- a/docs/packages/pymupdf.yaml +++ b/docs/packages/pymupdf.yaml @@ -11,3 +11,4 @@ versions: - filename: pymupdf-1.28.2-cp314-cp314t-manylinux_2_39_riscv64.whl sha256: 61fd148275207197d27acb4b874baf20be02b915ecd882000249bc568a91809d requires-python: '>=3.10' +- version: '2.0' From bcb1134bfcc2526a0167bd6f5954802f369002da Mon Sep 17 00:00:00 2001 From: Ludovic Henry Date: Fri, 23 Oct 2026 11:20:01 +0800 Subject: [PATCH 2/3] pymupdf: install only pillow/psutil wheels when testing The test requirements resolved pillow to a PyPI release newer than the wheels on pypi.riseproject.dev and tried to compile it from sdist, which fails for lack of the jpeg headers. --- .github/workflows/build-pymupdf.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build-pymupdf.yml b/.github/workflows/build-pymupdf.yml index 1ee217657e6d..87c7be5a1973 100644 --- a/.github/workflows/build-pymupdf.yml +++ b/.github/workflows/build-pymupdf.yml @@ -92,6 +92,12 @@ jobs: XCFLAGS=-D__LITTLE_ENDIAN__ XCXXFLAGS=-D__LITTLE_ENDIAN__ PIP_EXTRA_INDEX_URL=https://pypi.riseproject.dev/simple/ + # Installing the test dependencies must not compile pillow/psutil: their newest + # PyPI releases have no riscv64 wheel, only our registry does, and only-binary + # keeps pip on those wheels (pillow's sdist fails without the jpeg headers). + CIBW_TEST_ENVIRONMENT: >- + PIP_EXTRA_INDEX_URL=https://pypi.riseproject.dev/simple/ + PIP_ONLY_BINARY=pillow,psutil # Upstream's test deps (scripts/gh_release.py:test_packages), minus the # linters - see the ignores below. CIBW_TEST_REQUIRES: pytest fontTools pymupdf-fonts pillow psutil From 095acf56b3f86a1fb6c545c07ebcc902329768ef Mon Sep 17 00:00:00 2001 From: Ludovic Henry Date: Mon, 26 Oct 2026 00:52:02 +0100 Subject: [PATCH 3/3] pymupdf: test the cp314t wheel without the opencv-dependent extras conftest.py pip-installs opencv-python, llama_index and rapidocr for the pymupdf_layout/pymupdf4llm tests. opencv has no free-threaded riscv64 wheel and its sdist fails to build, so the cp314t test setup aborted before any test ran. Select upstream's lite test mode there. --- .github/workflows/build-pymupdf.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build-pymupdf.yml b/.github/workflows/build-pymupdf.yml index 87c7be5a1973..a48aacd0adf4 100644 --- a/.github/workflows/build-pymupdf.yml +++ b/.github/workflows/build-pymupdf.yml @@ -57,10 +57,15 @@ jobs: # cp312 is our floor, so the abi3 wheel is built there. - python: cp312 py_limited_api: '1' + test_extras: '' # pipcl asserts Py_LIMITED_API and Py_GIL_DISABLED are mutually # exclusive, so the free-threaded build must opt out of the stable ABI. - python: cp314t py_limited_api: '0' + # conftest.py pip-installs opencv-python (+ llama_index, rapidocr) for the + # pymupdf_layout/pymupdf4llm tests; opencv has no free-threaded riscv64 + # wheel and its sdist doesn't build, so test the lite (core) package only. + test_extras: '0' env: PYMUPDF_VERSION: ${{ matrix.version }} @@ -98,6 +103,8 @@ jobs: CIBW_TEST_ENVIRONMENT: >- PIP_EXTRA_INDEX_URL=https://pypi.riseproject.dev/simple/ PIP_ONLY_BINARY=pillow,psutil + PYMUPDF_TEST_USE_LAYOUT=${{ matrix.test_extras }} + PYMUPDF_TEST_USE_4LLM=${{ matrix.test_extras }} # Upstream's test deps (scripts/gh_release.py:test_packages), minus the # linters - see the ignores below. CIBW_TEST_REQUIRES: pytest fontTools pymupdf-fonts pillow psutil