Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/build-pymupdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions docs/packages/pymupdf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Loading