Skip to content

Move test/docs/dev deps to groups and simplify CI installs. - #619

Merged
ordabayevy merged 3 commits into
masterfrom
pr2-dependency-groups-uv-lock
Jul 31, 2026
Merged

Move test/docs/dev deps to groups and simplify CI installs.#619
ordabayevy merged 3 commits into
masterfrom
pr2-dependency-groups-uv-lock

Conversation

@ordabayevy

Copy link
Copy Markdown
Member

Summary

  • Move test, docs, and dev from package extras into PEP 735 [dependency-groups], keeping only torch/jax as optional extras.
  • Point local make install and GitHub Actions at pip install ... --group ... (requires pip ≥ 25.1).
  • Drop CI installs from pyro/numpyro/pyro-api master and special torch/jax pins; resolve backends from the declared extras instead.

Test plan

  • Default CI job passes with pip install . --group test
  • Torch CI job passes with pip install .[torch] --group test
  • Jax CI job passes with pip install .[jax] --group test
  • Locally: pip install -e . --group dev still installs docs + test tooling
  • Confirm ReadTheDocs is unchanged (docs/requirements.txt still used)

Use PEP 735 dependency groups instead of extras for tooling, and install
backends only via torch/jax extras so CI no longer tracks upstream master.
Unreleased pyro-ppl develop has the proper fix; pin until that ships.
Keep extras flexible (torch>=2.0, torchvision>=0.15) and pin
torch<=2.6 / jax<0.10 in CI until upstream releases land.

@fritzo fritzo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks for maintaining!

Comment thread .github/workflows/ci.yml
Comment on lines +52 to +54
# TODO: remove once pyro-ppl releases the Uniform arg_constraints fix
# (https://github.com/pyro-ppl/pyro/pull/3453).
pip install .[torch] --group test "torch<=2.6"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh man we really need to release pyro, it's been over two years 😫

@ordabayevy
ordabayevy merged commit 5150eac into master Jul 31, 2026
3 checks passed
@ordabayevy
ordabayevy deleted the pr2-dependency-groups-uv-lock branch July 31, 2026 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants