Repository navigation
fix(deps): cap pymupdf below 2 so Intel Macs can install - #5481
Conversation
Installing amd-gaia[rag] or [ui] on an Intel Mac failed, and so did the darwin-x64 freeze of the flagship agent in the v0.25.1-rc1 publish run. pymupdf 2.0 ships no macOS x86_64 wheel, so the resolver falls back to its sdist, whose metadata names itself pymupdf-lite and never builds. Intel Macs now get pymupdf>=1.24,<2 (resolves to the 1.28.2 wheel) through an environment marker; every other platform keeps the 2.x range the rc1 binaries were smoke-tested with, including the package data #5420 bundles. A packaging test checks each extra gives every platform exactly one pymupdf requirement and holds only darwin-x64 below 2.
|
Verdict: Approve This fixes installing The one open item is in the author's own test plan: the darwin-x64 sidecar build on this branch is still unchecked. That run is what proves the frozen binary builds and passes its smoke test on pymupdf 1.x, so it's worth seeing it green before merge. Real-world evidenceN/A: this PR only changes packaging metadata and tests, and no evidence bundle was produced. The verdict rests on a static review. The per-platform resolution results ( 🔍 Technical detailsIssues found: none blocking.
Checked and correct
Strengths
|
The per-platform marker broke `gaia init --profile chat` everywhere: init reads the extras back from GAIA's installed metadata and refuses any condition beyond `extra == ...`. A plain `<2` cap needs no marker and puts every platform on the 1.x wheels v0.25.0 shipped with. CI's unit lanes now install `pymupdf<2` too, so tests run against the version users get, and a test keeps extras free of platform markers.
|
The darwin-x64 freeze now passes: |
…5625) The v0.25.1 notes stopped at the release PR (amd#5474). That left fixes that users will notice out of the notes, and the changelog stopped short of the release commit. This PR adds those three fixes: the GAIA agent starts on Ubuntu 22.04, Debian 12 and RHEL 9 (amd#5545); Intel Macs can install again (amd#5546, amd#5481); and Windows settings folders you can read but can't create files in now load (amd#5469). It also adds six fixes from rc6 and rc7 and regenerates the changelog from git against rc7. ## Test plan - [x] `python util/validate_release_notes.py docs/releases/v0.25.1.mdx --tag v0.25.1` - [x] `pytest tests/unit/test_docs_json_release.py` - [x] `mintlify validate` from `docs/` - [x] The changelog lists 213 commits, the same count as `git rev-list --count v0.25.0..v0.25.1-rc7`. The narrative stays within the 350-word patch cap.
Intel Mac users couldn't install
amd-gaia[rag]or[ui](and sogaia init --profile chat), and the v0.25.1-rc1 publish failed to build the darwin-x64 agent binary. pymupdf 2.0, released after v0.25.0, ships no macOS x86_64 wheel, and its source package doesn't build (it calls itselfpymupdf-lite). Capping pymupdf below 2 puts every platform back on the 1.x wheels v0.25.0 shipped with; a platform-only cap isn't possible becausegaia initrefuses platform markers on extras.Test plan
uv pip compile setup.py --extra ragand--extra ui(py3.12,--only-binary pymupdf) resolvepymupdf==1.28.2for darwin-x64, darwin-arm64, linux-x64 and win-x64pytest tests/unit/test_dependency_major_caps.py tests/unit/test_ui_extras.py tests/unit/agents/test_install_hints.py tests/unit/rag hub/agents/gaia/python/tests/test_freeze_required_modules.pypython util/lint.py --allgaia init --profile chatjourney passesbuild_flagship_sidecar.ymldispatched on this branch: all four freezes, including darwin-x64, pass their smoke test