docs: add "Wiring pyrer into rez" integration guide#76
Merged
Conversation
`pyrer` is the solver hotpath only — rez still owns discovery, env build, the context lifecycle. The README has the `pyrer.solve` API but doesn't say how to actually slot it behind a normal `rez env` flow. Filling that gap. New Zola page under getting-started: - The integration model (what pyrer is / isn't), with an ASCII pipeline diagram showing where rez stays and where pyrer takes over. - `build_pyrer_repo(package_paths)` — walks `iter_package_families` and produces the JSON shape `pyrer.solve` expects. - Result translation back to rez `Variant` objects via `rez.packages.get_package(name, version).get_variant(idx)`. - A minimum-viable monkey-patch of `rez.resolver.Resolver._solve` that delegates to pyrer on the happy path and falls back to rez's own solver for any non-default config (custom orderer, filters, late-binding requires). - Caveats section explicitly listing what pyrer does *not* model yet: `VariantSelectMode::intersection_priority` (issue #63), `@early` / `@late` requires, custom `PackageOrder` / `PackageFilter`, variant-index parity in the differential. - A sanity-check loop for diffing pyrer vs rez on your own repo. - A note on running many resolves against the same repo: build the dict once, plus pointer to `pyrer`'s shared variant cache. Also: - Link the new page from the introduction's "Next steps" list so it's discoverable from the docs front page. - Add a compressed reference block in the README's "Using it from Python" section (the same three steps: walk → solve → translate), with a pointer to the full docs page. zola build / zola check both clean; 16 pages (was 15). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
`pyrer` is the solver hotpath only — `rez` still owns discovery, env build, the `ResolvedContext` lifecycle. The README has the basic `pyrer.solve` API but doesn't say how to actually slot it behind a normal `rez env` flow. This PR fills that gap.
What's in the new docs page
`docs/content/docs/getting-started/rez-integration.md`:
VariantSelectMode::intersection_priority#63), `@early` / `@late` requires, custom `PackageOrder` / `PackageFilter`, variant-index parity in the differential.Other changes
Verification
🤖 Generated with Claude Code