Skip to content
Merged
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
19 changes: 15 additions & 4 deletions .github/workflows/build-pikepdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,16 @@ jobs:
ref: v${{ env.PIKEPDF_VERSION }}
persist-credentials: false

- name: Read upstream qpdf pin
run: |
python3 - >> "$GITHUB_ENV" <<'EOF'
import tomllib
with open("pyproject.toml", "rb") as f:
env = tomllib.load(f)["tool"]["cibuildwheel"]["environment"]
for key in ("QPDF_MIN_VERSION", "QPDF_VERSION", "QPDF_PATTERN"):
print(f"{key}={env[key]}")
EOF

- name: Build wheels
uses: pypa/cibuildwheel@1828c10ab37f080699c7b81cea34097c684a7074 # v4.2.0
with:
Expand All @@ -73,11 +83,12 @@ jobs:
CIBW_MANYLINUX_RISCV64_IMAGE: ${{ env.MANYLINUX_RISCV64_IMAGE }}
# CIBW_ENVIRONMENT replaces, not merges, upstream's [tool.cibuildwheel.environment]
# table, so QPDF_* (consumed by before-all's build-scripts/*.bash) must be repeated
# alongside our registry (CLAUDE.md gotcha 107).
# alongside our registry (CLAUDE.md gotcha 107); they are read from the checked-out
# pyproject.toml so each pikepdf version builds against the qpdf it pins.
CIBW_ENVIRONMENT: >-
QPDF_MIN_VERSION=12.3.2
QPDF_VERSION=12.3.2
QPDF_PATTERN=https://github.com/qpdf/qpdf/releases/download/vVERSION/qpdf-VERSION.tar.gz
QPDF_MIN_VERSION=${{ env.QPDF_MIN_VERSION }}
QPDF_VERSION=${{ env.QPDF_VERSION }}
QPDF_PATTERN=${{ env.QPDF_PATTERN }}
PIP_EXTRA_INDEX_URL=https://pypi.riseproject.dev/simple/
# hypothesis switched its build backend to maturin; newer releases have no
# riscv64 wheel anywhere, and maturin's rustup auto-install does not support
Expand Down
1 change: 1 addition & 0 deletions docs/packages/pikepdf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ versions:
- filename: pikepdf-10.13.0.post1-cp314-cp314t-manylinux_2_39_riscv64.whl
sha256: 915d7e2af38b9b565419340912c41d84f5a2f084e9a731fddab9aa3e1bcd942d
requires-python: '>=3.10'
- version: 10.14.0
Loading