diff --git a/.github/workflows/build-pymupdf.yml b/.github/workflows/build-pymupdf.yml index 1ee217657e6d..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 }} @@ -92,6 +97,14 @@ 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 + 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 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'